types

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 5 Imported by: 1 module, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type UserData added in v0.0.5

type UserData struct {
	ID          string
	Match       *bool
	HasResponse bool
	Host        string
}

UserData is context used to identify a http transaction and its state like match, response etc.

type Verbosity added in v0.0.8

type Verbosity int
const (
	VerbositySilent Verbosity = iota
	VerbosityDefault
	VerbosityVerbose
	VerbosityVeryVerbose
)

Jump to

Keyboard shortcuts

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