Documentation
¶
Overview ¶
Package output is responsible for writing logs and received response data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output is responsible for all the output, be it logging or writing received data.
func NewOutput ¶
NewOutput creates a new instance of Output. path is an optional path to the file where the tool will write the received data. If not specified, this information will be written to stdout. verbose defines whether we need to write extended information.
func (*Output) DebugRequest ¶
DebugRequest writes information about the HTTP request to the output.
func (*Output) DebugResponse ¶
DebugResponse writes information about the HTTP response to the output.
type ResponseData ¶
type ResponseData struct { StatusCode int `json:"status_code"` Status string `json:"status"` Proto string `json:"proto"` TLS *TLSState `json:"tls"` Headers map[string][]string `json:"headers"` Body string `json:"body"` }
ResponseData is a helper object for serializing response data to JSON.
Click to show internal directories.
Click to hide internal directories.