middleware

package
v0.0.0-...-bfc208d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(logger *slog.Logger) func(http.Handler) http.Handler

Logger middleware creates a handler that logs information about each HTTP request. It logs when a request starts and completes, including details like request ID, method, path, status code, latency, and more.

func Recovery

func Recovery(next http.Handler) http.Handler

Recovery converts panics to a sanitized problem response. Request bodies are deliberately never dumped because they can contain credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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