proxyutil

package
v0.0.0-...-34a2968 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCookieHeader

func ClearCookieHeader(req *http.Request, keepCookiesNames []string)

ClearCookieHeader clear cookie header, except for cookies specified to be kept.

func PrepareProxyRequest

func PrepareProxyRequest(req *http.Request)

PrepareProxyRequest prepares a request for being proxied. Removes X-Forwarded-Host, X-Forwarded-Port, X-Forwarded-Proto headers. Set X-Forwarded-For headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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