The missing functionality from net/http
httpaux augments golang's net/http
package with a few extra goodies.
- Middleware for clients in the form of http.RoundTripper decoration
- Standardized middleware interfaces
- Busy server middleware to limit serverside traffic
- Observable http.ResponseWriter middleware that provides a standard way for http.Handler decorators to examine what was written to the response by nested handlers
- Gate middleware to control server and client traffic
- An efficient, immutable Header type for writing static headers
- A configurable
ConstantHandler
that writes hardcoded information to responses httpmock
package for mock-style testing with HTTP clientsretry
package with configurable retry for clients including exponential backofferraux
package with a configurable Encoder ruleset for representing errors as HTTP responses
This project and everyone participating in it are governed by the XMiDT Code Of Conduct. By participating, you agree to this Code.
go get github.com/xmidt-org/httpaux
Refer to CONTRIBUTING.md.