# Functions
AuthUser is the same as AuthUsers, but for a single user.
AuthUsers authenticates users with the given map[username]password.
BasicAuth returns a middleware that authenticates users with Basic Auth.
Chain returns a http.Handler that chains the middleware onion-style around the handler.
Conditional is a middleware that only executes middleware if the condition returns true for the request.
CookieAuth extracts the auth cookie and forwards it to the Authorization header.
Cookies is a middleware that allows handling of secure cookies.
CORS returns a middleware that handles Cross-Origin Resource Sharing.
CSRF returns a middleware that enables CSRF protection via a sync token.
FillContext returns a middleware that fills global context into a call context.
GetSecureCookie retrieves the secure cookie encoder from the context.
Log returns a middleware that logs requests.
MaxBody returns a middleware that limits the maximum body of requests.
Metadata returns a middleware that sets gRPC metadata from the request headers.
Namespace is middleware that sets the namespace.
NoCache is a middleware function that adds headers that prevent proxies from caching responses.
Peer sets the remote address as a peer in the request context.
ProxyHeaders processes proxy headers for trusted proxies.
Recover returns middleware that recovers from panics.
Redirect returns a middleware that redirects requests if they don't already match the configuration.
RequestID returns a middleware that inserts a request ID into each request.
RequestURL populates (*http.Request).URL with the scheme and host.
SecurityHeaders returns a middleware that inserts security headers into each response.
# Structs
CORSConfig is the configuration for the CORS middleware.
ProxyConfiguration is the configuration for the ProxyHeaders middleware.
RedirectConfiguration is the configuration for the Redirect middleware.
# Interfaces
Authenticator is the interface the Basic Auth middleware uses to authenticate users.
# Type aliases
MiddlewareFunc is a function that acts as middleware for http Handlers.