Documentation ¶
Index ¶
- func CloneRequest(src *http.Request) (*http.Request, error)
- func CopyHeader(dst, src http.Header)
- func GetForwardedHeaders(r *http.Request) http.Header
- func GetProto(r *http.Request) string
- func JoinURLPath(a, b *url.URL) (path, rawpath string)
- func RemoveHopHeaders(h http.Header)
- func UpgradeType(h http.Header) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRequest ¶
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 JoinURLPath ¶
func RemoveHopHeaders ¶
RemoveHopHeaders removes hop-by-hop headers and connection specific headers.
func UpgradeType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.