middleware

package
v0.0.0-...-b83af6d Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(next http.HandlerFunc) http.HandlerFunc

Log is a middleware function that logs all incoming HTTP requests.

func Timeout

func Timeout(d time.Duration) func(http.HandlerFunc) http.HandlerFunc

Timeout is a middleware function that adds a deadline to the request context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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