proxies

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

proxies

HTTPS_PROXY=127.0.0.1:1080 go run cmd/main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultipleReverseProxy

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

func NewMultipleReverseProxy

func NewMultipleReverseProxy() *MultipleReverseProxy

func (*MultipleReverseProxy) Endpoint

func (mp *MultipleReverseProxy) Endpoint() string

func (*MultipleReverseProxy) ServeHTTP

func (mp *MultipleReverseProxy) ServeHTTP(w http.ResponseWriter, in *http.Request)

type ReverseProxy

type ReverseProxy struct {
	Host   string
	Prefix string
	Proxy  *httputil.ReverseProxy
}

func NewReverseProxy

func NewReverseProxy(prefix, host string) *ReverseProxy

func (*ReverseProxy) Director

func (rp *ReverseProxy) Director(out *http.Request)

func (*ReverseProxy) ServeHTTP

func (rp *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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