middleware

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(next http.Handler) http.Handler

Cache writes required cache headers to all requests.

func RealIP

func RealIP(next http.Handler) http.Handler

RealIP just wraps the go-chi realip middleware.

func Recoverer

func Recoverer(logger log.Logger) func(next http.Handler) http.Handler

Recoverer initializes a recoverer middleware.

func Timeout

func Timeout(next http.Handler) http.Handler

Timeout just copies the go-chi timeout middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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