package
0.0.0-20220111133703-f1e56083d4f3
Repository: https://github.com/sandwichdev/net.git
Documentation: pkg.go.dev

# Functions

DumpRequest returns the given request in its HTTP/1.x wire representation.
DumpRequestOut is like DumpRequest but for outgoing client requests.
DumpResponse is like DumpRequest but dumps a response.
NewChunkedReader returns a new chunkedReader that translates the data read from r out of HTTP "chunked" format before returning it.
NewChunkedWriter returns a new chunkedWriter that translates writes into HTTP "chunked" format before writing them to w.
NewClientConn is an artifact of Go's early HTTP implementation.
NewProxyClientConn is an artifact of Go's early HTTP implementation.
NewServerConn is an artifact of Go's early HTTP implementation.
NewSingleHostReverseProxy returns a new ReverseProxy that routes URLs to the scheme, host, and base path provided in target.

# Variables

Deprecated: No longer used.
ErrLineTooLong is returned when reading malformed chunked data with lines that are too long.
Deprecated: No longer used.
Deprecated: No longer used.

# Structs

ClientConn is an artifact of Go's early HTTP implementation.
ReverseProxy is an HTTP Handler that takes an incoming request and sends it to another server, proxying the response back to the client.
ServerConn is an artifact of Go's early HTTP implementation.

# Interfaces

A BufferPool is an interface for getting and returning temporary byte slices for use by io.CopyBuffer.