Versions in this module Expand all Collapse all v0 v0.1.7 May 10, 2023 v0.0.0 May 10, 2023 Changes in this version + var ErrClosed = &http.ProtocolError + 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 TestNilBody(t *testing.T) + func TestReverseProxy(t *testing.T) + func TestReverseProxyCancelation(t *testing.T) + func TestReverseProxyFlushInterval(t *testing.T) + func TestReverseProxyGetPutBuffer(t *testing.T) + func TestReverseProxyModifyResponse(t *testing.T) + func TestReverseProxyQuery(t *testing.T) + func TestReverseProxyStripHeadersPresentInConnection(t *testing.T) + func TestReverseProxy_CopyBuffer(t *testing.T) + func TestReverseProxy_NilBody(t *testing.T) + func TestReverseProxy_Post(t *testing.T) + func TestUserAgentHeader(t *testing.T) + func TestXForwardedFor(t *testing.T) + 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) + 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 RoundTripperFunc func(*http.Request) (*http.Response, error) + func (fn RoundTripperFunc) RoundTrip(req *http.Request) (*http.Response, error) + 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