diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-04 13:21:20 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-04 13:21:20 -0600 |
commit | 2eb35933271d5b2ef1ca29aaa8f00f6748c56424 (patch) | |
tree | 480d08eb3f9b85353fb858d2b1b6c9cb86f33954 /modules/caddyhttp/matchers.go | |
parent | 1136e2cfeed5cc06a0811d39c2560c06f9dd74a2 (diff) |
Begin implementing HTTP replacer and static responder
Diffstat (limited to 'modules/caddyhttp/matchers.go')
-rw-r--r-- | modules/caddyhttp/matchers.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 21cc19f..731832b 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -139,11 +139,11 @@ func (m matchHeader) Match(r *http.Request) bool { // Interface guards var ( - _ RouteMatcher = matchHost{} - _ RouteMatcher = matchPath{} - _ RouteMatcher = matchMethod{} - _ RouteMatcher = matchQuery{} - _ RouteMatcher = matchHeader{} - _ RouteMatcher = new(matchProtocol) - _ RouteMatcher = new(matchScript) + _ RouteMatcher = (*matchHost)(nil) + _ RouteMatcher = (*matchPath)(nil) + _ RouteMatcher = (*matchMethod)(nil) + _ RouteMatcher = (*matchQuery)(nil) + _ RouteMatcher = (*matchHeader)(nil) + _ RouteMatcher = (*matchProtocol)(nil) + _ RouteMatcher = (*matchScript)(nil) ) |