Documentation ¶
Overview ¶
Package middleware provides common extensions required for production HTTP applications.
Directories ¶
Path | Synopsis |
---|---|
Package cors provides a "Cross Origin Resource Sharing" middleware.
|
Package cors provides a "Cross Origin Resource Sharing" middleware. |
Package gzip provides data compression of HTTP responses for clients that support it.
|
Package gzip provides data compression of HTTP responses for clients that support it. |
Package headers provides a middleware to add HTTP headers to all generated responses.
|
Package headers provides a middleware to add HTTP headers to all generated responses. |
Package hsts provides a HTTP Strict Transport Security middleware implementation.
|
Package hsts provides a HTTP Strict Transport Security middleware implementation. |
Package logging generates flexible logs from processed HTTP requests.
|
Package logging generates flexible logs from processed HTTP requests. |
Package metadata allows to set/get additional context details from/on HTTP requests.
|
Package metadata allows to set/get additional context details from/on HTTP requests. |
Package proxy adjust values managed by reverse proxy headers on incoming HTTP requests.
|
Package proxy adjust values managed by reverse proxy headers on incoming HTTP requests. |
Package rate provides a rate limiter middleware based on a "token bucket" implementation.
|
Package rate provides a rate limiter middleware based on a "token bucket" implementation. |
Package recovery allows an HTTP server to recover from unhandled panic events.
|
Package recovery allows an HTTP server to recover from unhandled panic events. |
Click to show internal directories.
Click to hide internal directories.