Documentation
¶
Index ¶
- Variables
- func ResponseConnect(w http.ResponseWriter) net.Conn
- type Proxy
- func (p *Proxy) MitmRequest(w http.ResponseWriter, r *http.Request)
- func (p *Proxy) ProxyHTTPRequest(w http.ResponseWriter, r *http.Request)
- func (p *Proxy) ProxyHTTPSRequest(w http.ResponseWriter, r *http.Request, conn net.Conn)
- func (p *Proxy) RelayHTTPSRequest(w http.ResponseWriter, r *http.Request)
- func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (p *Proxy) WriteResponse(w http.ResponseWriter, res *http.Response)
- type RequestResponsePair
- func (rpair *RequestResponsePair) DumpRequest() (string, error)
- func (rpair *RequestResponsePair) DumpResponse() (string, error)
- func (rpair *RequestResponsePair) GetRequestBody() (string, error)
- func (rpair *RequestResponsePair) SetRequest(r http.Request)
- func (rpair *RequestResponsePair) SetResponse(r http.Response)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SequenceId = 0
)
Functions ¶
func ResponseConnect ¶
func ResponseConnect(w http.ResponseWriter) net.Conn
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) MitmRequest ¶
func (p *Proxy) MitmRequest(w http.ResponseWriter, r *http.Request)
func (*Proxy) ProxyHTTPRequest ¶
func (p *Proxy) ProxyHTTPRequest(w http.ResponseWriter, r *http.Request)
func (*Proxy) ProxyHTTPSRequest ¶
func (*Proxy) RelayHTTPSRequest ¶
func (p *Proxy) RelayHTTPSRequest(w http.ResponseWriter, r *http.Request)
func (*Proxy) WriteResponse ¶
func (p *Proxy) WriteResponse(w http.ResponseWriter, res *http.Response)
type RequestResponsePair ¶
type RequestResponsePair struct { Id int TempDir string Request http.Request Response http.Response }
func NewRequestResponsePair ¶
func NewRequestResponsePair() *RequestResponsePair
func (*RequestResponsePair) DumpRequest ¶
func (rpair *RequestResponsePair) DumpRequest() (string, error)
func (*RequestResponsePair) DumpResponse ¶
func (rpair *RequestResponsePair) DumpResponse() (string, error)
func (*RequestResponsePair) GetRequestBody ¶
func (rpair *RequestResponsePair) GetRequestBody() (string, error)
func (*RequestResponsePair) SetRequest ¶
func (rpair *RequestResponsePair) SetRequest(r http.Request)
func (*RequestResponsePair) SetResponse ¶
func (rpair *RequestResponsePair) SetResponse(r http.Response)
Click to show internal directories.
Click to hide internal directories.