Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReverseProxy ¶
ReverseProxy holds the state for the HTTP ReverseProxy and Websocket Proxy
func New ¶
func New(target *url.URL, hostname string) (*ReverseProxy, error)
New returns a new ReverseProxy
func NewWithTrustedCertificates ¶
func NewWithTrustedCertificates(target *url.URL, hostname string, certs []*tls.Certificate) (*ReverseProxy, error)
NewWithTrustedCertificates returns a new ReverseProxy
func (*ReverseProxy) ServeHTTP ¶
func (p *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP determines whether to proxy a HTTP request or a WS one
Click to show internal directories.
Click to hide internal directories.