Match returns true if r matches m.
(r *http.Request)
| 202 | |
| 203 | // Match returns true if r matches m. |
| 204 | func (m MatchExpression) Match(r *http.Request) bool { |
| 205 | match, err := m.MatchWithError(r) |
| 206 | if err != nil { |
| 207 | SetVar(r.Context(), MatcherErrorVarKey, err) |
| 208 | } |
| 209 | return match |
| 210 | } |
| 211 | |
| 212 | // MatchWithError returns true if r matches m. |
| 213 | func (m MatchExpression) MatchWithError(r *http.Request) (bool, error) { |
nothing calls this directly
no test coverage detected