package
0.0.0-20220311221224-1d4f0c8ec03f
Repository: https://github.com/bombsimon/http-helpers.git
Documentation: pkg.go.dev

# Functions

AddMiddlewares will add all middlewares in the passed orter and return a handler which may be used for the http server.
Logger creates a logger in a http.Handler for the HTTP server.
NewResponseWriter will convert the response writer to a *ResponseWriterWithInfo if it is one, otherwise wrap the response writer in such type.
PanicRecovery ensures that panics are handled.
Prometheus will add metrics for the request to prometheus.
RateLimiter is a middleware that rate limits requests.

# Structs

ResponseWriterWithInfo is a response writer that can hold additional information which can help enrich code executed as middlewares.

# Type aliases

Middleware represents a middleware function which will add a handler before the final http serve handler.