proxyutil

package
v0.0.0-...-900be4e Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 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.

func SetProxyResponseHeaders

func SetProxyResponseHeaders(header http.Header)

SetProxyResponseHeaders sets proxy response headers. Sets Content-Security-Policy: sandbox

Types

This section is empty.

Jump to

Keyboard shortcuts

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