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