httpforward

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSchemeHTTPOrHTTPS

func IsSchemeHTTPOrHTTPS(url *url.URL) bool

Types

type ForwardFroxy

type ForwardFroxy struct {
	On               bool
	Whitelist        map[string]struct{}
	ForwardChainInfo bool
	// contains filtered or unexported fields
}

func ConfigForwardFroxy

func ConfigForwardFroxy() *ForwardFroxy

func (*ForwardFroxy) ServeHTTP

func (ff *ForwardFroxy) ServeHTTP(w http.ResponseWriter, req *http.Request)

type StandardForwardProxy

type StandardForwardProxy struct{}

func (StandardForwardProxy) ServeHTTP

func (sfp StandardForwardProxy) 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