Documentation ¶
Overview ¶
Package proxy is the core proxy for the application
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSingleHostReverseProxy ¶
func NewSingleHostReverseProxy(target *url.URL, passHostHeader bool, tlsConfig *tls.Config) *httputil.ReverseProxy
NewSingleHostReverseProxy returns a new ReverseProxy that routes URLs to the scheme, host, and base path provided in target. If the target's path is "/base" and the incoming request was for "/dir", the target request will be for /base/dir. NewSingleHostReverseProxy rewrites the Host header, and uses a custom tlsConfig.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.