Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRequest ¶ added in v0.0.15
type HTTPRequest struct {
Header map[string]string `json:"header,omitempty"`
Body string `json:"body,omitempty"`
Raw string `json:"raw,omitempty"`
}
HTTPRequest is a struct for http request
func NewHttpRequestData ¶ added in v0.0.15
func NewHttpRequestData(req *http.Request) (*HTTPRequest, error)
NewHttpRequestData creates a new HttpRequest with data extracted from an http.Request
type HTTPRequestResponseLog ¶ added in v0.0.10
type HTTPRequestResponseLog struct {
Timestamp string `json:"timestamp,omitempty"`
URL string `json:"url,omitempty"`
Request *HTTPRequest `json:"request,omitempty"`
Response *HTTPResponse `json:"response,omitempty"`
}
HTTPRequestResponseLog is a struct for http request and response log it is a processed version of http transaction for logging in more structured format than just raw bytes
type HTTPResponse ¶ added in v0.0.15
type HTTPResponse struct {
Header map[string]string `json:"header,omitempty"`
Body string `json:"body,omitempty"`
Raw string `json:"raw,omitempty"`
}
HTTPResponse is a struct for http response
func NewHttpResponseData ¶ added in v0.0.15
func NewHttpResponseData(resp *pdhttpUtils.ResponseChain) (*HTTPResponse, error)
NewHttpResponseData creates a new HttpResponse with data extracted from an http.Response
type HTTPTransaction ¶ added in v0.0.15
type HTTPTransaction struct {
Userdata UserData
RawData []byte
Data []byte
DataString string
Name string
PartSuffix string
Format string
Request *http.Request
Response *http.Response
}
HTTPTransaction is a struct for http transaction it contains data of every request/response obtained from proxy
Click to show internal directories.
Click to hide internal directories.