proxyadapters

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionStatsReaderAdapter

type ConnectionStatsReaderAdapter interface {
	GetClientIP() string
	GetProxyID() string
	GetRequestURL() string
}

ConnectionStatsReaderAdapter is an interface for reading connection stats data from any proxy connection stats object that has been abstracted by this interface. Connection stats are information about the connection between the client and the proxy.

type FlowReaderAdapter

type FlowReaderAdapter interface {
	GetRequest() RequestReaderAdapter
	GetResponse() ResponseReaderAdapter
	GetConnectionStats() ConnectionStatsReaderAdapter
}

FlowReaderAdapter is an interface for reading flow data from any proxy flow object that has been abstracted by this interface. A flow is a collection of data about a single request, response, and connection stats.

This interface is the first step in replacing the mitmproxy-specific flow object with a more generic flow object that can be used with any proxy library.

type RequestReaderAdapter

type RequestReaderAdapter interface {
	GetMethod() string
	GetURL() *url.URL
	GetProto() string
	GetHeaders() http.Header
	GetBodyBytes() []byte
}

RequestReaderAdapter is an interface for reading request data from any proxy object that has been abstracted by this interface.

type ResponseReaderAdapter

type ResponseReaderAdapter interface {
	GetStatusCode() int
	GetHeaders() http.Header
	GetBodyBytes() []byte
}

ResponseReaderAdapter is an interface for reading response data from any proxy object that has been abstracted by this interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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