middleware

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowContentType

func AllowContentType(contentTypes ...string) func(next router.Handler) router.Handler

func AllowedHosts

func AllowedHosts(allowed_hosts ...string) func(next router.Handler) router.Handler

func Cache

func Cache(maxAge int) func(next router.Handler) router.Handler

func GZIP

func GZIP(next router.Handler) router.Handler

func NoCache

func NoCache(next router.Handler) router.Handler

func Printer

func Printer(next router.Handler) router.Handler

func Recoverer

func Recoverer(next router.Handler) router.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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