Handler builds and returns a http.Handler from the chain of middlewares, with `h http.Handler` as the final handler.
(h http.Handler)
| 10 | // Handler builds and returns a http.Handler from the chain of middlewares, |
| 11 | // with `h http.Handler` as the final handler. |
| 12 | func (mws Middlewares) Handler(h http.Handler) http.Handler { |
| 13 | return &ChainHandler{h, chain(mws, h), mws} |
| 14 | } |
| 15 | |
| 16 | // HandlerFunc builds and returns a http.Handler from the chain of middlewares, |
| 17 | // with `h http.Handler` as the final handler. |