RequestMatcher is a type that can match to a request. A route matcher MUST NOT modify the request, with the only exception being its context. Deprecated: Matchers should now implement RequestMatcherWithError. You may remove any interface guards for RequestMatcher but keep your Match() methods for b
| 41 | // You may remove any interface guards for RequestMatcher |
| 42 | // but keep your Match() methods for backwards compatibility. |
| 43 | type RequestMatcher interface { |
| 44 | Match(*http.Request) bool |
| 45 | } |
| 46 | |
| 47 | // RequestMatcherWithError is like RequestMatcher but can return an error. |
| 48 | // An error during matching will abort the request middleware chain and |
no outgoing calls
no test coverage detected