Documentation ¶
Index ¶
- func CheckRequestContains(in []RequestResponse, expectedString string) bool
- type HTTPProxy
- func NewHTTPProxy(listenPort int, targetAddr string) *HTTPProxy
- func NewHTTPProxyWithPortAllocation(targetAddr string) *HTTPProxy
- func NewHTTPSProxy(listenPort int, targetAddr, pathToPem, pathToKey string) *HTTPProxy
- func NewHTTPSProxyWithPortAllocation(targetAddr, pathToPem, pathToKey string) *HTTPProxy
- type RequestResponse
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRequestContains ¶
func CheckRequestContains(in []RequestResponse, expectedString string) bool
Types ¶
type HTTPProxy ¶
type HTTPProxy struct { ListenPort int WithLogger bool Err error // contains filtered or unexported fields }
func NewHTTPProxy ¶
func NewHTTPSProxy ¶
func (*HTTPProxy) GetSniffedData ¶
func (p *HTTPProxy) GetSniffedData() []RequestResponse
func (*HTTPProxy) ResetSniffedData ¶
func (p *HTTPProxy) ResetSniffedData()
type RequestResponse ¶
func NewRequestResponse ¶
func (*RequestResponse) Print ¶
func (r *RequestResponse) Print()
Click to show internal directories.
Click to hide internal directories.