filters

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAllowedMethod

func WithAllowedMethod(method string, next http.Handler) http.Handler

WithAllowedMethod verifies the request method before invoking the next handler.

func WithAuthentication

func WithAuthentication(auth authenticator.Request, next http.Handler) http.Handler

WithAuthentication tries to authenticate the request against the passed authenticator before invoking the next handler. If the request is not authenticated then a 401 response is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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