middleware

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL