Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadGatewayMessage = `<html>
<body>
<h1>502 Bad Gateway</h1>
<p>Can't connect to upstream server, please try again later.</p>
</body>
</html>`
Functions ¶
func CARootPath ¶
func CARootPath() string
func CreateProxy ¶
func CreateProxy(targetURL url.URL, vhost string) *httputil.ReverseProxy
Types ¶
type LogRecord ¶
type LogRecord struct { http.ResponseWriter // contains filtered or unexported fields }
func (*LogRecord) WriteHeader ¶
type LoggedMux ¶
func NewLoggedMux ¶
func NewLoggedMux() *LoggedMux
func (*LoggedMux) AddLogListener ¶
func (*LoggedMux) RemoveLogListener ¶
type ProxyTransport ¶
type ProxyTransport struct { }
type VhostMux ¶
VhostMux is an http.Handler whose ServeHTTP forwards the request to backend Servers according to the incoming request URL
func CreateVhostMux ¶
CreateVhostMux config from list of bindings
Click to show internal directories.
Click to hide internal directories.