Documentation ¶
Overview ¶
Package http provides a http proxy implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanHeader ¶
CleanHeader cleans the header from the fields that are not intended to be relevant to downstream recipients. See RFC 7230 section 6.1.
func CopyHeader ¶
Types ¶
type Proxy ¶
type Proxy struct { dialer.Dialer S *http.Server C *http.Client // contains filtered or unexported fields }
Proxy represents a HTTP proxy server implementation.
func (*Proxy) ListenAndServe ¶
ListenAndServe reveals the proxy to the network. If p is storing a complete tls configuration, p will serve HTTPS connections.
Click to show internal directories.
Click to hide internal directories.