MatchWithError returns true if r matches m.
(r *http.Request)
| 994 | |
| 995 | // MatchWithError returns true if r matches m. |
| 996 | func (m MatchHeader) MatchWithError(r *http.Request) (bool, error) { |
| 997 | repl := r.Context().Value(caddy.ReplacerCtxKey).(*caddy.Replacer) |
| 998 | return matchHeaders(r.Header, http.Header(m), r.Host, r.TransferEncoding, repl), nil |
| 999 | } |
| 1000 | |
| 1001 | // CELLibrary produces options that expose this matcher for use in CEL |
| 1002 | // expression matchers. |
no test coverage detected