Documentation ¶
Overview ¶
Package header provides middleware that appends headers to requests based on a set of configuration rules that define which routes receive which headers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
Header represents a single HTTP header, simply a name and value.
type Headers ¶
type Headers struct { Next httpserver.Handler Rules []Rule }
Headers is middleware that adds headers to the responses for requests matching a certain path.
Click to show internal directories.
Click to hide internal directories.