middleware

package
v0.0.0-...-5b56370 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSRF

func CSRF(key []byte, secure bool) func(http.Handler) http.Handler

CSRF returns middleware that configures gorilla/csrf with the provided key and flags.

func RequestLogger

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

RequestLogger records high-level metadata about each HTTP request without logging bodies.

func SecureHeaders

func SecureHeaders(next http.Handler) http.Handler

SecureHeaders adds HTTP response headers that harden browser security for the site.

Types

This section is empty.

Jump to

Keyboard shortcuts

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