Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomHeader ¶
type CustomHeader struct { HeaderName string `json:"header_name,omitempty"` HeaderValue string `json:"header_value,omitempty"` }
CustomHeader is an example handler that adds a custom header to the response
func (CustomHeader) CaddyModule ¶
func (CustomHeader) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (CustomHeader) ServeHTTP ¶
func (ch CustomHeader) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
func (*CustomHeader) UnmarshalCaddyfile ¶
func (ch *CustomHeader) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.