Versions in this module Expand all Collapse all v1 v1.1.4 Feb 11, 2022 v1.1.3 Feb 11, 2022 Changes in this version + var ErrClosed = &http.ProtocolError + var ErrLineTooLong = internal.ErrLineTooLong + var ErrPersistEOF = &http.ProtocolError + var ErrPipeline = &http.ProtocolError + func DumpRequest(req *http.Request, body bool) ([]byte, error) + func DumpRequestOut(req *http.Request, body bool) ([]byte, error) + func DumpResponse(resp *http.Response, body bool) ([]byte, error) + func NewChunkedReader(r io.Reader) io.Reader + func NewChunkedWriter(w io.Writer) io.WriteCloser + type BufferPool interface + Get func() []byte + Put func([]byte) + type ClientConn struct + func NewClientConn(c net.Conn, r *bufio.Reader) *ClientConn + func NewProxyClientConn(c net.Conn, r *bufio.Reader) *ClientConn + func (cc *ClientConn) Close() error + func (cc *ClientConn) Do(req *http.Request) (*http.Response, error) + func (cc *ClientConn) Hijack() (c net.Conn, r *bufio.Reader) + func (cc *ClientConn) Pending() int + func (cc *ClientConn) Read(req *http.Request) (resp *http.Response, err error) + func (cc *ClientConn) Write(req *http.Request) error + type ReverseProxy struct + BufferPool BufferPool + Director func(*http.Request) + ErrorHandler func(http.ResponseWriter, *http.Request, error) + ErrorLog *log.Logger + FlushInterval time.Duration + ModifyResponse func(*http.Response) error + Transport http.RoundTripper + func NewSingleHostReverseProxy(target *url.URL) *ReverseProxy + func (p *ReverseProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type ServerConn struct + func NewServerConn(c net.Conn, r *bufio.Reader) *ServerConn + func (sc *ServerConn) Close() error + func (sc *ServerConn) Hijack() (net.Conn, *bufio.Reader) + func (sc *ServerConn) Pending() int + func (sc *ServerConn) Read() (*http.Request, error) + func (sc *ServerConn) Write(req *http.Request, resp *http.Response) error