middleware

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APISecret added in v0.12.0

func APISecret(next http.Handler) http.Handler

APISecret checks the Authorization header against the configured API secret. The schema must be "Key".

func Cors

func Cors() func(next http.Handler) http.Handler

Cors configures CORS log level and origins. The configuration is not restricted by default.

func Gzip

func Gzip() func(next http.Handler) http.Handler

Gzip returns a gzip middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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