Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HybridTransport ¶
type HybridTransport struct {
// contains filtered or unexported fields
}
func NewHybridTransport ¶
func NewHybridTransport(ws *websocket.Server) *HybridTransport
NewHybridTransport creates a new hybrid transport
func NewHybridTransportWithCalls ¶
func NewHybridTransportWithCalls(normal, insecure http.RoundTripper, ws *websocket.Server) *HybridTransport
NewHybridTransportWithCalls creates new hybrid transport with custom normal and insecure http.RoundTripper functions.
NewHybridTransportWithCalls(nil, nil) is equivalent to NewHybridTransport()
func (*HybridTransport) ConnectWebsocket ¶ added in v0.0.8
func (h *HybridTransport) ConnectWebsocket(rw http.ResponseWriter, req *http.Request)
ConnectWebsocket calls the websocket upgrader and thus hijacks the connection
func (*HybridTransport) InsecureRoundTrip ¶
InsecureRoundTrip calls the insecure transport
func (*HybridTransport) SecureRoundTrip ¶
SecureRoundTrip calls the secure transport
Click to show internal directories.
Click to hide internal directories.