Documentation
¶
Overview ¶
Package acceptquery advertises and enforces HTTP QUERY request formats as defined by RFC 10008.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build converts media types into the Structured Fields List syntax required by Accept-Query and also returns normalized base media types for enforcement.
func New ¶
func New(cfg Config) fh.HandlerFunc
New returns route middleware that emits Accept-Query. When Enforce is true, QUERY requests using an unadvertised Content-Type are rejected with 415.
Types ¶
Click to show internal directories.
Click to hide internal directories.