middleware

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(handler http.HandlerFunc, middleware ...Middleware) http.HandlerFunc

Chain applies multiple middleware in sequence

Types

type Middleware

type Middleware func(http.HandlerFunc) http.HandlerFunc

Middleware represents a middleware function

func CORS

func CORS() Middleware

CORS adds CORS headers to responses

func JSON

func JSON() Middleware

JSON ensures JSON content type

func Logging

func Logging(logger utils.Logger) Middleware

Logging logs HTTP requests

Jump to

Keyboard shortcuts

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