Post

Was NewWrapper supposed to return `func(Handler) Handler` instead of `func(Handler) HandlerFunc`? The former is what all of the http libraries expect. so this middleware can't be used with say, chi

An http . HandlerFunc implements http . Handler - so you are getting a Handler back as well. If you need to convert the function type it should be trivial.

No replies yet.