(handler func(next http.Handler) http.Handler)
| 70 | } |
| 71 | |
| 72 | func (hr HeaderRouter) RouteDefault(handler func(next http.Handler) http.Handler) HeaderRouter { |
| 73 | hr["*"] = []HeaderRoute{{Middleware: handler}} |
| 74 | return hr |
| 75 | } |
| 76 | |
| 77 | func (hr HeaderRouter) Handler(next http.Handler) http.Handler { |
| 78 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
no outgoing calls