package
2.0.0+incompatible
Repository: https://github.com/malfunkt/hyperfox.git
Documentation: pkg.go.dev
# Functions
NewProxy creates and returns a Proxy reference.
# Constants
EnvTLSCert defines the name for the environment variable that holds the root TLS certificate..
EnvTLSKey defines the name for the environment variable that holds the root TLS key.
# Structs
ProxiedRequest struct provides properties for executing a *http.Request and proxying it into a http.ResponseWriter.
Proxy struct provides methods and properties for creating a proxy programatically.
# Interfaces
BodyWriteCloser interface returns a io.WriteCloser where a copy of the response body will be written.
Director interface gets a reference of the http.Request sent by an user before sending it to the destination.
Interceptor interface gets a reference of the http.Response sent by the destination before arriving to the client.
Logger interface gets a reference of the ProxiedRequest after the response has been writte to the client.