Wrap returns a new handler that wraps the specified handler.
(handler Handler)
| 4 | type Middleware interface { |
| 5 | // Wrap returns a new handler that wraps the specified handler. |
| 6 | Wrap(handler Handler) (wrapped Handler) |
| 7 | } |
| 8 | |
| 9 | // MiddlewareFunc is a function that implements the [Middleware] interface. |
no outgoing calls