Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReverseProxyServeMux ¶
func SingleJoiningSlash ¶
Types ¶
type ReverseProxyHandler ¶
type ReverseProxyHandler struct { HTTPReverseProxy http.Handler WebSocketReverseProxy http.Handler }
func (*ReverseProxyHandler) NewReverseProxy ¶
func (h *ReverseProxyHandler) NewReverseProxy(target string)
func (*ReverseProxyHandler) ServeHTTP ¶
func (h *ReverseProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WsReverseProxy ¶
type WsReverseProxy struct { // Dialer contains options for connecting to the backend WebSocket server. // If nil, DefaultDialer net..Dial is used. Dialer func(network, addr string) (net.Conn, error) // Director must be a function which modifies // the request into a new request to be sent // using Transport. Director func(*http.Request) // TLSClientConfig specifies the TLS configuration to use with // tls.Client. TLSClientConfig *tls.Config }
func NewSingleHostWsReverseProxy ¶
func NewSingleHostWsReverseProxy(target *url.URL) *WsReverseProxy
func (*WsReverseProxy) ServeHTTP ¶
func (ws *WsReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.