MatchWithError returns true if r matches m.
(r *http.Request)
| 325 | |
| 326 | // MatchWithError returns true if r matches m. |
| 327 | func (m MatchFile) MatchWithError(r *http.Request) (bool, error) { |
| 328 | return m.selectFile(r) |
| 329 | } |
| 330 | |
| 331 | // selectFile chooses a file according to m.TryPolicy by appending |
| 332 | // the paths in m.TryFiles to m.Root, with placeholder replacements. |