Documentation ¶
Index ¶
Constants ¶
View Source
const ( GET Verb = "GET" POST = "POST" PUT = "PUT" DELETE = "DELETE" HEAD = "HEAD" PATCH = "PATCH" )
Variables ¶
This section is empty.
Functions ¶
func HTTP ¶
HTTP returns a handler that will check each request's method against a predefined whitelist. If the request's method is not part of the list, the response will be a 400 Bad Request.
Types ¶
Click to show internal directories.
Click to hide internal directories.