proxyutil

package module
v0.0.0-...-8e079d7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRequest

func CloneRequest(src *http.Request) (*http.Request, error)

CloneRequest clones the request. This should not be used for very large bodies. The body is first read and the reader is replaced in both the source and destination requests.

func CopyHeader

func CopyHeader(dst, src http.Header)

func GetForwardedHeaders

func GetForwardedHeaders(r *http.Request) http.Header

func GetProto

func GetProto(r *http.Request) string

func JoinURLPath

func JoinURLPath(a, b *url.URL) (path, rawpath string)

func RemoveHopHeaders

func RemoveHopHeaders(h http.Header)

RemoveHopHeaders removes hop-by-hop headers and connection specific headers.

func UpgradeType

func UpgradeType(h http.Header) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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