denyrouterrecursion

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapHandler

func WrapHandler(routerName string) alice.Constructor

WrapHandler Wraps router to alice.Constructor.

Types

type DenyRouterRecursion

type DenyRouterRecursion struct {
	// contains filtered or unexported fields
}

func New

func New(routerName string, next http.Handler) (*DenyRouterRecursion, error)

New creates a new DenyRouterRecursion. DenyRouterRecursion middleware is an internal middleware used to avoid infinite requests loop on the same router.

func (*DenyRouterRecursion) ServeHTTP

func (l *DenyRouterRecursion) ServeHTTP(rw http.ResponseWriter, req *http.Request)

ServeHTTP implements http.Handler.

Jump to

Keyboard shortcuts

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