Documentation ¶
Index ¶
Constants ¶
View Source
const ( XForwardedProto = "X-Forwarded-Proto" XForwardedFor = "X-Forwarded-For" XForwardedHost = "X-Forwarded-Host" XForwardedServer = "X-Forwarded-Server" ContentLength = "Content-Length" )
Variables ¶
This section is empty.
Functions ¶
func IdleTimeoutSetter ¶
func Rewriter ¶
func Rewriter(r RequestRewriter) optSetter
func RoundTripper ¶
func RoundTripper(r http.RoundTripper) optSetter
Types ¶
type HeaderRewriter ¶
Rewriter is responsible for removing hop-by-hop headers and setting forwarding headers
func (*HeaderRewriter) Rewrite ¶
func (rw *HeaderRewriter) Rewrite(req *http.Request)
type RequestRewriter ¶
Click to show internal directories.
Click to hide internal directories.