Martti T
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
Martti T
4c2fd1fb04
Allow proxy middleware to use query part in rewrite ( fix #1798 ) ( #1802 )
2021-03-09 13:22:11 +01:00
Martti T
5622ecc180
Fix performance regression caused by path escaping ( #1777 , #1798 , #1799 )
...
* Fix performance regression #1777 and avoid double escaping in rewrite/proxy middleware.
* Add rewrite test for correct escaping of replacement (#1798 )
Co-authored-by: Roland Lammel <rl@neotel.at>
2021-03-08 02:01:02 +01:00
Roland Lammel
932976ded6
Support real regex rules for rewrite and proxy middleware ( #1767 )
...
Support real regex rules for rewrite and proxy middleware (use non-greedy matching by default)
Co-authored-by: pwli <lipw0755@gmail.com>
2021-02-08 16:58:55 +02:00
Arun Gopalpuri
f6dfcbe774
bugfix proxy and rewrite, updated test with actual call settings
2020-09-16 19:29:22 -07:00
Arun Gopalpuri
1a6ec73e57
using url.EscapedPath instead of custom GetPath, rewritePath func added to middleware - used by proxy and rewrite
2020-08-31 13:09:24 -07:00
Alex Ungur
6d9e043284
Introduced Go module support as v4, removed obsolete CloseNotifier() mechanism
...
This reintroduces support for Go modules, as v4.
CloseNotifier() is removed as it has been obsoleted, see https://golang.org/doc/go1.11#net/http
It was already NOT working (not sending signals) as of 1.11 the functionality was gone, we merely
deleted the functions that exposed it. If anyone still relies on it they should migrate to using
`c.Request().Context().Done()` instead.
Closes #1268 , #1255
2019-01-30 16:11:42 +02:00
Vishal Rana
61084e242e
JWT BeforeFunc, SuccessHandler & ErrorHandler
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2018-06-28 20:42:18 -07:00
Vishal Rana
9ae7047759
Rewrite rules for proxy middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-12-27 15:14:44 -08:00
Vishal Rana
a098bcd3b0
Updated docs
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-02-19 13:02:10 -08:00
Vishal Rana
52fa135fd5
Updated docs, exposed middleware.DefaultSkipper
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-28 11:46:43 -08:00
Vishal Rana
27f9b326b8
Ability to skip a middleware via callback
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-07-27 09:34:44 -07:00
Vishal Rana
3cd1d5be65
Fixed sync.Pool
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-08 17:26:00 -08:00
Vishal Rana
65fcca2ce3
Middleware interface
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-07 23:02:37 -08:00
Vishal Rana
1ee3bc23e3
Added gzip middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-15 12:29:14 -07:00
Vishal Rana
69a97671ad
Adding http basic authentication middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-11 15:43:54 -07:00
Vishal Rana
99124cda0a
Wrap method for using third party middleware
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-21 14:59:09 -07:00
Vishal Rana
7c9a0b6489
initial commit
...
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-01 09:45:13 -08:00