Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Forward ¶
func Forward(domain string) func(http.ResponseWriter, *http.Request)
Forward returns a handler function which forwards the unmodified request to the domain in the param.
func ForwardTo ¶
func ForwardTo(theURL string) func(http.ResponseWriter, *http.Request)
ForwardTo eturns a handler function which intercepts a request and replaces what would have been the original request's response with the response from an entirely different request at given url. This can be a different domain and endpoint entirely.
Types ¶
This section is empty.