Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestDebugger ¶
type RequestDebugger struct { // Enables or disables the plugin. Disabled bool `json:"disabled,omitempty"` // Adds a tag to a log message Tag string `json:"tag,omitempty"` // Adds response buffering and debugging ResponseDebugEnabled bool `json:"response_debug_enabled,omitempty"` // If URIFilter is not empty, then only the plugin // intercepts only the pages matching the regular expression // in the filter URIFilter string `json:"uri_filter,omitempty"` // contains filtered or unexported fields }
RequestDebugger is a middleware which displays the content of the request it handles. It helps troubleshooting web requests by exposing headers (e.g. cookies), URL parameters, etc.
func (RequestDebugger) CaddyModule ¶
func (RequestDebugger) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*RequestDebugger) Provision ¶
func (dbg *RequestDebugger) Provision(ctx caddy.Context) error
Provision sets up RequestDebugger.
func (RequestDebugger) ServeHTTP ¶
func (dbg RequestDebugger) ServeHTTP(resp http.ResponseWriter, req *http.Request, next caddyhttp.Handler) error
Click to show internal directories.
Click to hide internal directories.