httptor

package
v1.69.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticationMiddleware

func AuthenticationMiddleware(
	next http.Handler,
	authenticator security.Authenticator,
	opts ...security.AuthOption,
) http.Handler

AuthenticationMiddleware is an HTTP middleware that verifies and extracts authentication data supplied in a JWT as an Authorization bearer token.

func ContextSetupMiddleware

func ContextSetupMiddleware(
	mainCtx context.Context,
	next http.Handler,
	ctxFnList ...func(ctx context.Context) context.Context,
) http.Handler

ContextSetupMiddleware propagates logger in main context into HTTP context.

func LoggingMiddleware

func LoggingMiddleware(next http.Handler, logBody bool) http.HandlerFunc

LoggingMiddleware — zero-alloc hot path, panic-safe, production-grade.

Types

This section is empty.

Jump to

Keyboard shortcuts

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