Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Method override headers expose the requested and original methods. HeaderXHTTPMethodOverride = "X-HTTP-Method-Override" HeaderXOriginalMethod = "X-Original-Method" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(configs ...Config) zinc.Middleware
New lets POST requests ask for PUT, PATCH, or DELETE. It rewrites only explicitly permitted source methods, so header input cannot widen route access.
Types ¶
Click to show internal directories.
Click to hide internal directories.