Documentation ¶
Index ¶
- func ClientTLSConfig(cl *http.Client) *tls.Config
- func CopyURL(u *url.URL) (ret *url.URL)
- func ForwardResponse(w http.ResponseWriter, r *http.Response)
- func GzipHandler(h http.Handler) http.Handler
- func NukeCookie(w http.ResponseWriter, r *http.Request, name, path string)
- func OriginatingProtocol(r *http.Request) string
- func RedirectedRequest(r *http.Request, newUrl string) (ret *http.Request, err error)
- func RequestedURL(r *http.Request) (ret *url.URL)
- func ReverseProxy(w http.ResponseWriter, r *http.Request, originUrl string, client *http.Client) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientTLSConfig ¶
Returns the http.Client's TLS Config, traversing and generating any defaults along the way to get it.
func ForwardResponse ¶
func ForwardResponse(w http.ResponseWriter, r *http.Response)
func GzipHandler ¶
Gzips response body if the request says it'll allow it.
func NukeCookie ¶
func NukeCookie(w http.ResponseWriter, r *http.Request, name, path string)
Clears the named cookie for every domain that leads to the current one.
func OriginatingProtocol ¶
func RedirectedRequest ¶
Takes a request, and alters its destination fields, for proxying.
func RequestedURL ¶
Reconstructs the URL that would have produced the given Request. Request.URLs are not fully populated in http.Server handlers.
func ReverseProxy ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.