Documentation ¶
Overview ¶
Package headers defines a middleware that adds static headers to the requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Headers ¶
Headers is an http.Header map that implements the httpcmw.Wrapper interface so that the headers are added to each request using the middleware. By default the header values are set (replace any existing value), but the behaviour can be controlled by prepending a "+" to the header name (add the value) or a "-" (remove this header).
Click to show internal directories.
Click to hide internal directories.