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
| 41 | // Response header operations can be conditioned upon response status code |
| 42 | // and/or other header values. |
| 43 | type Handler struct { |
| 44 | Request *HeaderOps `json:"request,omitempty"` |
| 45 | Response *RespHeaderOps `json:"response,omitempty"` |
| 46 | } |
| 47 | |
| 48 | // CaddyModule returns the Caddy module information. |
| 49 | func (Handler) CaddyModule() caddy.ModuleInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected