proxyreq

package
v1.0.0-beta.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 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