Documentation
¶
Index ¶
- func ModifyResponseChain(fns ...func(*http.Response) error) func(*http.Response) error
- func RemoveCORSHeaders(resp *http.Response) error
- func RewriteChain(fns ...func(*httputil.ProxyRequest)) func(*httputil.ProxyRequest)
- func RewriteFullFunc(url *url.URL) func(r *httputil.ProxyRequest)
- func RewriteHostFunc(url *url.URL) func(r *httputil.ProxyRequest)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifyResponseChain ¶
func RemoveCORSHeaders ¶
RemoveCORSHeaders removes all CORS related headers from the http.Response.
This is necessary because the ReverseProxy appends these headers to the ones already existing on the downstream response, however the downstream response already contains CORS headers which get added by the CORS middleware.
func RewriteChain ¶
func RewriteChain(fns ...func(*httputil.ProxyRequest)) func(*httputil.ProxyRequest)
func RewriteFullFunc ¶
func RewriteFullFunc(url *url.URL) func(r *httputil.ProxyRequest)
func RewriteHostFunc ¶
func RewriteHostFunc(url *url.URL) func(r *httputil.ProxyRequest)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.