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.
Click to show internal directories.
Click to hide internal directories.