Documentation
¶
Index ¶
- func CheckHeader() framework.MiddlewareFunc
- func DefaultCORS() framework.MiddlewareFunc
- func ExtendedCORS() framework.MiddlewareFunc
- func IPRateLimitRegular() framework.MiddlewareFunc
- func IPRateLimitStrict() framework.MiddlewareFunc
- func RemoveTrailingSlash() framework.MiddlewareFunc
- func Secure() framework.MiddlewareFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHeader ¶
func CheckHeader() framework.MiddlewareFunc
CheckHeader handles a response with an error if the header isn't valid.
func DefaultCORS ¶
func DefaultCORS() framework.MiddlewareFunc
DefaultCORS allows only GET requests.
func ExtendedCORS ¶
func ExtendedCORS() framework.MiddlewareFunc
ExtendedCORS allows GET, POST and DELETE requests.
func IPRateLimitRegular ¶
func IPRateLimitRegular() framework.MiddlewareFunc
IPRateLimitRegular returns a regular limiter middleware.
func IPRateLimitStrict ¶
func IPRateLimitStrict() framework.MiddlewareFunc
IPRateLimitStrict returns a strict limiter middleware.
func RemoveTrailingSlash ¶
func RemoveTrailingSlash() framework.MiddlewareFunc
RemoveTrailingSlash removes the trailing slash from URLs.
func Secure ¶
func Secure() framework.MiddlewareFunc
Secure adds to the response some headers to increase protection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.