proxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Client  *http.Client
	Forward func(*http.Request) (*url.URL, error)
}

func (*Proxy) Http

func (proxy *Proxy) Http(w http.ResponseWriter, r *http.Request)

func (*Proxy) HttpConnect

func (proxy *Proxy) HttpConnect(w http.ResponseWriter, r *http.Request)

func (*Proxy) Init

func (proxy *Proxy) Init() error

func (*Proxy) ServeHTTP

func (proxy *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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