http

package
v1.68.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 9 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 ContextLoggingMiddleware added in v1.68.0

func ContextLoggingMiddleware(logger *util.LogEntry, next http.Handler) http.Handler

ContextLoggingMiddleware propagates logger in main context into HTTP context.

func LoggingMiddleware added in v1.65.7

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

LoggingMiddleware creates an HTTP middleware that logs requests and responses when tracing is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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