Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderOps ¶
type HeaderOps struct {
Add http.Header `json:"add,omitempty"`
Set http.Header `json:"set,omitempty"`
Delete []string `json:"delete,omitempty"`
}
HeaderOps defines some operations to perform on HTTP headers.
type Headers ¶
type Headers struct {
Request *HeaderOps `json:"request,omitempty"`
Response *RespHeaderOps `json:"response,omitempty"`
}
Headers is a middleware which can mutate HTTP headers.
func (Headers) CaddyModule ¶
func (Headers) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
type RespHeaderOps ¶
type RespHeaderOps struct {
*HeaderOps
Require *caddyhttp.ResponseMatcher `json:"require,omitempty"`
Deferred bool `json:"deferred,omitempty"`
}
RespHeaderOps is like HeaderOps, but optionally deferred until response time.
Click to show internal directories.
Click to hide internal directories.