Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookiesPara ¶
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"` // Request api address returns true or false Url string `json:"url,omitempty"` // Redirect URL Redirect string `json:"redirect,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
type RequestPara ¶
Click to show internal directories.
Click to hide internal directories.