package
1.1.0
Repository: https://github.com/cognusion/oxy.git
Documentation: pkg.go.dev

# Functions

Clone clone a request.
CopyHeaders copies http headers from source to destination, it does not overide, but adds multiple headers.
CopyURL provides update safe copy by avoiding shallow copying User field.
DumpHttpRequest dump a HTTP request to JSON.
HasHeaders determines whether any of the header names is present in the http headers.
NewBufferWriter creates a new BufferWriter.
NewExtractor creates a new SourceExtractor.
NewProxyWriter creates a new ProxyWriter.
NewProxyWriterWithLogger creates a new ProxyWriter.
NopWriteCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.
ParseAuthHeader creates a new BasicAuth from header values.
RemoveHeaders removes the header with the given names from the headers map.

# Constants

StatusClientClosedRequest non-standard HTTP status code for client disconnection.
StatusClientClosedRequestText non-standard HTTP status for client disconnection.

# Variables

DefaultHandler default error handler.

# Structs

BasicAuth basic auth information.
BufferWriter buffer writer.
ProxyWriter calls recorder, used to debug logs.
SerializableHttpRequest serializable HTTP request.
StdHandler Standard error handler.

# Interfaces

ErrorHandler error handler.
SourceExtractor extracts the source from the request, e.g.

# Type aliases

ErrorHandlerFunc error handler function type.
ExtractorFunc extractor function type.
ExtractSource extract source function type.