Match returns true if r matches m.
(r *http.Request)
| 251 | |
| 252 | // Match returns true if r matches m. |
| 253 | func (m MatchClientIP) Match(r *http.Request) bool { |
| 254 | match, err := m.MatchWithError(r) |
| 255 | if err != nil { |
| 256 | SetVar(r.Context(), MatcherErrorVarKey, err) |
| 257 | } |
| 258 | return match |
| 259 | } |
| 260 | |
| 261 | // MatchWithError returns true if r matches m. |
| 262 | func (m MatchClientIP) MatchWithError(r *http.Request) (bool, error) { |
nothing calls this directly
no test coverage detected