1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-03 00:56:59 +02:00
Commit Graph

483 Commits

Author SHA1 Message Date
9f50a659e9 Changelog for 4.13.4 (#2781) 2025-05-22 14:04:26 +03:00
45524e39d6 Update golang.org/x/net dependency [GO-2024-3333](https://pkg.go.dev/vuln/GO-2024-3333) (#2722) 2024-12-19 06:51:34 +02:00
692bc2abb6 Update dependencies (dependabot reports https://pkg.go.dev/vuln/GO-2024-3321) (#2721) 2024-12-12 07:47:56 +02:00
fd3f07447e Changelog for v4.13.1 (#2719) 2024-12-11 12:18:50 +02:00
3b017855b4 Changelog for 4.13.0 (#2712) 2024-12-04 22:13:45 +02:00
822d11a465 Add TemplateRenderer struct to ease creating renderers for html/template and text/template packages. 2024-10-20 21:21:51 +03:00
f7d9f5142e optimization: struct alignment (#2636)
(#2632)
2024-05-30 22:50:01 +03:00
88c379ff77 Changelog for v4.12.0 (#2626) 2024-04-15 21:31:01 +03:00
3598f295f9 Change type definition blocks to single declarations. This helps copy/pasting Echo code in examples. (#2606) 2024-03-09 07:53:07 -08:00
a842444e8f Add SPDX licence comments to files. See https://spdx.dev/learn/handling-license-info/ (#2604) 2024-03-09 11:21:24 +02:00
3e04e3e2f2 fix: some typos (#2596) 2024-03-06 21:52:53 +02:00
34717b717d fix some typos (#2603)
Signed-off-by: teslaedison <qingchengqiushuang@gmail.com>
2024-03-06 21:43:59 +02:00
76994d17d5 Remove default charset from 'application/json' Content-Type header (#2568)
Fixes #2567
2024-02-06 07:41:33 +02:00
226e4f076a Changelog for v4.11.4 (#2564)
Changelog for v4.11.4
2023-12-20 15:24:30 +02:00
4b26cde851 Changelog for v4.11.3 (#2542) 2023-11-07 14:19:32 +02:00
98a523756d Changelog for v4.11.2 (#2529) 2023-10-11 08:32:23 +03:00
a2e7085094 Changelog for v4.11.1 2023-07-16 20:41:57 +03:00
ac7a9621a1 bump version to 4.10.0 2023-07-14 23:18:22 +03:00
fbfe2167f1 fix(DefaultHTTPErrorHandler): return error message when message is an error (#2456)
* fix(DefaultHTTPErrorHandler): return error message when message is an error
2023-05-29 23:26:53 +03:00
0d47b7e6a9 fix misuses of a vs an
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-22 21:37:45 +03:00
47844c9b7f Changelog for v4.10.2 2023-02-22 01:11:41 +02:00
04ba8e2f9d Add more http error values (#2277)
* Add more HTTP error constants
2023-02-21 22:32:11 +01:00
b888a30fe3 Changelog for v4.10.1 2023-02-19 21:12:17 +02:00
f36d5662fb Changelog for 4.10.0 2022-12-27 21:59:53 +02:00
0056cc8ec0 Improve comments wording 2022-12-25 22:19:15 +02:00
45402bb393 Add echo.OnAddRouteHandler field. As name says - this handler is called when new route is registered. 2022-12-25 22:19:15 +02:00
f1cf1ec930 Fix adding route with host overwrites default host route with same method+path in list of routes. 2022-12-25 22:19:15 +02:00
8d4ac4c907 Additional configuration options for RequestLogger and Logger middleware (#2341)
* Add `middleware.RequestLoggerConfig.HandleError` configuration option to handle error within middleware with global error handler thus setting response status code decided by error handler and not derived from error itself.
* Add `middleware.LoggerConfig.CustomTagFunc` so Logger middleware can add custom text to logged row.
2022-11-30 15:47:23 +02:00
3c4d3b3083 Replace "io/ioutil"
"io/ioutil" pakcage has been deprecated since Go 1.16.
2022-11-21 15:59:14 +02:00
be23ab67cc Add new method HTTPError.WithInternal 2022-11-19 23:05:16 +02:00
fd2b102d3e Modify comment syntax error 2022-11-12 23:56:47 +02:00
a97d4bfb7b fix func(Context) error to HandlerFunc 2022-11-12 23:54:51 +02:00
16d3b65eb0 Changelog for 4.9.0 2022-09-04 23:04:47 +03:00
d48197db7a Changelog for 4.8.0 2022-08-10 23:12:40 +03:00
cba12a570e Allow arbitrary HTTP method types to be added as routes 2022-08-10 22:04:06 +03:00
690e3392d9 Add support for registering handlers for 404 routes (#2217) 2022-07-12 21:53:41 +03:00
ec92fedf21 Update version and changelog for 4.7.2 2022-03-16 09:34:26 +02:00
05df10c62f fix nil pointer exception when calling Start again after address binding error 2022-03-15 21:38:57 +02:00
b445958c3c Update version and changelog for 4.7.1 2022-03-13 18:43:24 +02:00
5ebed440ae Update version to v4.7.0 2022-03-02 23:16:19 +01:00
7e719b46e2 Add cache-control and connection headers (#2103)
Co-authored-by: Wagner Souza <wagner.souza@accenture.com>
2022-03-02 00:11:28 +01:00
124825ee62 Bugfix/1834 Fix X-Real-IP bug (#2007)
* Fix incorrect return ip value for RealIpHeader
* Improve test file to compare correct real IPs to each other and have better comments
* Refactor ip extractor tests to be more readable (longer but readable)

Co-authored-by: toimtoimtoim <desinformatsioon@gmail.com>
2022-03-01 08:56:46 +01:00
27b404bbc5 remove unused notFoundHandler in echo struct (#2102)
* remove unused notFoundHandler in echo
2022-02-23 13:28:20 +02:00
4a1ccdfdc5 JWT, KeyAuth, CSRF multivalue extractors (#2060)
* CSRF, JWT, KeyAuth middleware support for multivalue value extractors
* Add flag to JWT and KeyAuth middleware to allow continuing execution `next(c)` when error handler decides to swallow the error (returns nil).
2022-01-24 22:03:45 +02:00
1b1a68fd4f Improve filesystem support (Go 1.16+). Add field echo.Filesystem, methods: echo.FileFS, echo.StaticFS, group.FileFS, group.StaticFS. Following methods will use echo.Filesystem to server files: echo.File, echo.Static, group.File, group.Static, Context.File 2022-01-24 15:55:16 +02:00
f3865f9aa5 Minor syntax fixes (#1994) 2022-01-24 10:33:13 +01:00
94638be9f8 Add Retry-After header constant 2022-01-23 22:21:50 +02:00
aada6f95d7 Fix Echo version number which was not incremented with Release 4.6.2. Now bumped to 4.6.3 2022-01-10 21:51:37 +02:00
6f6befe555 improve docs 2022-01-03 21:04:17 +02:00
5b26a5257b Allow header support in Router, MethodNotFoundHandler (405) and CORS middleware 2022-01-03 21:04:17 +02:00