proxyreq

package
v1.0.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 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