logic

package
v0.0.0-...-657c62d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookiesPara

type CookiesPara struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

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

type RequestPara struct {
	Address string        `json:"address,omitempty"`
	Host    string        `json:"host,omitempty"`
	Agent   string        `json:"agent,omitempty"`
	Tag     string        `json:"tag,omitempty"`
	Proto   string        `json:"proto,omitempty"`
	Cookies []CookiesPara `json:"cookies,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL