proxy

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

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

func (h *HybridTransport) InsecureRoundTrip(req *http.Request) (*http.Response, error)

InsecureRoundTrip calls the insecure transport

func (*HybridTransport) SecureRoundTrip

func (h *HybridTransport) SecureRoundTrip(req *http.Request) (*http.Response, error)

SecureRoundTrip calls the secure transport

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL