A collection of basic HTTP middleware implementation examples in Go
- loopchain: An extremely simple middleware implementation using a for loop
- recursivechain: Middleware implementation using recursion that allows for a short-circuiting the middleware chain
- finalhandler: Variant on the recursive implementation, but using a final logic handler in the chain as the first chain parameter
- customstate: Middleware implementation using recursion with a custom http.ResponseWriter implementation to manage custom state along the request chain
- apiexample: A slightly more organized example JSON API using previous middleware techniques