ws

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReverseProxy

func NewReverseProxy(director func(*http.Request)) http.Handler

func NewReverseProxyWithCustom

func NewReverseProxyWithCustom(director func(*http.Request)) http.Handler

Types

type ReverseProxy

type ReverseProxy struct {
	Director func(*http.Request)
}

func (*ReverseProxy) ServeHTTP

func (p *ReverseProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type ReverseProxyWithCustom

type ReverseProxyWithCustom struct {
	// contains filtered or unexported fields
}

func (*ReverseProxyWithCustom) ServeHTTP

func (r *ReverseProxyWithCustom) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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