NOOPdoes nothing
AcceptMiddleware()alters theAcceptheader so only a given set is passed to the next handler in the chain
WithErrorHandlerMiddleware()
- HTTPSRedirectHandler a handler that will redirect to https if non-https, or return 404 already https
we define an ErrorHandler as a function like:
func (http.ResponseWriter, *http.Request, error)WithErrorHandler() and ErrorHandler() add and read the context
for such handler