What should really be in golang's net/http/httputil package.
A collection of net/http utilities and middlewares to build your own stack.
Just pick and choose whatever is useful to you!
From the list of avaiable middlewares, here is the recommended order:
- RequestIDMiddleware (left-most)
- LogMiddleware
- CleanPathMiddleware
- GzipMiddleware
- RecoveryMiddleware
- Application code
All files in this projects are licensed under the ISC. See the LICENSE file for more details.