proxyreq

package
v0.1.1-rc.6-body-doubl... Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeInboundRequest

func NormalizeInboundRequest(r *http.Request) *http.Request

NormalizeInboundRequest makes sure that the request received by the proxy has the destination inside URL.Host.

Types

type ProxyMode

type ProxyMode int
const (
	MODE_FORWARD_PROXY ProxyMode = iota
	MODE_REVERSE_PROXY
)

func GetProxyMode

func GetProxyMode(r *http.Request) ProxyMode

Jump to

Keyboard shortcuts

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