MCPcopy
hub / github.com/caddyserver/caddy / Handler

Struct Handler

modules/caddyhttp/headers/headers.go:43–46  ·  view source on GitHub ↗

Handler is a middleware which modifies request and response headers. Changes to headers are applied immediately, except for the response headers when Deferred is true or when Required is set. In those cases, the changes are applied when the headers are written to the response. Note that deferred ch

Source from the content-addressed store, hash-verified

41// Response header operations can be conditioned upon response status code
42// and/or other header values.
43type Handler struct {
44 Request *HeaderOps `json:"request,omitempty"`
45 Response *RespHeaderOps `json:"response,omitempty"`
46}
47
48// CaddyModule returns the Caddy module information.
49func (Handler) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected