middleware

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(next http.Handler) http.Handler

func Panic

func Panic(next http.Handler) http.Handler

func PanicLog

func PanicLog(w http.ResponseWriter, r *http.Request)

func PanicReportTimeoutHandler

func PanicReportTimeoutHandler(h http.Handler, dt time.Duration, msg string) http.Handler

PanicReportTimeoutHandler replaces http.TimeoutHandler with PanicReportTimeoutHandler

func Timeout

func Timeout(dt time.Duration) func(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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