verb

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Allow

func Allow(methodNotAllowedFn http.HandlerFunc) func(...string) chain.IntermediateFunc

Allow creates a middleware function which checks if an incoming HTTP request matches one of the allowed methods. If yes then it will invoke the next handler otherwise it will call the notAllowedFn function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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