View definition

type NextMiddlewareFunc

Defined in


NextMiddlewareFunc are functions passed into your middleware. To advance the middleware, call the function. You should usually pass the existing ResponseWriter and *Request into the next middlware, but you can chose to swap them if you want to modify values or capture things written to the ResponseWriter.

NextMiddlewareFunc is referenced in 30 repositories