Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Allow = makeMiddleware(contains)
Allow will only pass through requests to the given handler if the request's method is contained in the given list of HTTP methods
View Source
var Disallow = makeMiddleware(func(needle string, haystack []string) bool {
return !contains(needle, haystack)
})
Disallow will not pass through requests to the given handler if the request's method is contained in the given list of HTTP methods
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.