You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe many of us are implementing middleware functions in this way. It's really easy to chain these kind of handlers together to work as one complete http handler. And there are already many middleware functions in the community implemented this way. Here are some packages or frameworks supporting this:
Let's treat the following signature as an "http middleware handler":
I believe many of us are implementing middleware functions in this way. It's really easy to chain these kind of handlers together to work as one complete http handler. And there are already many middleware functions in the community implemented this way. Here are some packages or frameworks supporting this:
In go-restful, we can find an easy way to turn such a middleware handler to a filter. It should work like a charm.
Here's my proposal of the API:
The text was updated successfully, but these errors were encountered: