updateRouteHandler builds the single mux handler that is a chain of the middleware stack, as defined by calls to Use(), and the tree router (Mux) itself. After this point, no other middlewares can be registered on this Mux's stack. But you can still compose additional middlewares via Group()'s or us
()
| 509 | // point, no other middlewares can be registered on this Mux's stack. But you can still |
| 510 | // compose additional middlewares via Group()'s or using a chained middleware handler. |
| 511 | func (mx *Mux) updateRouteHandler() { |
| 512 | mx.handler = chain(mx.middlewares, http.HandlerFunc(mx.routeHTTP)) |
| 513 | } |
| 514 | |
| 515 | // methodNotAllowedHandler is a helper function to respond with a 405, |
| 516 | // method not allowed. It sets the Allow header with the list of allowed |
no test coverage detected