Provision compiles m's regular expressions.
(ctx caddy.Context)
| 297 | |
| 298 | // Provision compiles m's regular expressions. |
| 299 | func (m MatchVarsRE) Provision(ctx caddy.Context) error { |
| 300 | for _, rm := range m { |
| 301 | err := rm.Provision(ctx) |
| 302 | if err != nil { |
| 303 | return err |
| 304 | } |
| 305 | } |
| 306 | return nil |
| 307 | } |
| 308 | |
| 309 | // Match returns true if r matches m. |
| 310 | func (m MatchVarsRE) Match(r *http.Request) bool { |