Match returns true if r matches m.
(r *http.Request)
| 144 | |
| 145 | // Match returns true if r matches m. |
| 146 | func (m MatchRemoteIP) Match(r *http.Request) bool { |
| 147 | match, err := m.MatchWithError(r) |
| 148 | if err != nil { |
| 149 | SetVar(r.Context(), MatcherErrorVarKey, err) |
| 150 | } |
| 151 | return match |
| 152 | } |
| 153 | |
| 154 | // MatchWithError returns true if r matches m. |
| 155 | func (m MatchRemoteIP) MatchWithError(r *http.Request) (bool, error) { |
nothing calls this directly
no test coverage detected