middleware

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsMiddleware

func CorsMiddleware(next http.Handler) http.Handler

func JWT

func JWT(servers config.Servers, pathValueName string) func(http.Handler) http.Handler

func Logging

func Logging(next http.Handler) http.Handler

Logging returns a middleware that logs HTTP requests.

func MCPServerApp

func MCPServerApp(
	servers config.Servers,
	pathValueName string,
) func(next http.HandlerFunc) http.HandlerFunc

func ProtectedResourceMetadataURL added in v1.8.0

func ProtectedResourceMetadataURL(r *http.Request) string

ProtectedResourceMetadataURL builds the RFC 9728 resource metadata URL for r's host/scheme, used as the WWW-Authenticate challenge's resource_metadata parameter (RFC 6750) on a 401.

func Recover

func Recover(h http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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