Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateForwardedRequest ¶
GenerateForwardedRequest generates a new http.Request that contains the original requests's information in the new request's body.
Types ¶
type ForwardedRequest ¶
type ForwardedRequest struct { // The original method Method string `json:"method"` // The original URL object URL *url.URL `json:"url"` // The original headers Header http.Header `json:"header"` // The request body Body []byte `json:"body"` // The specified host Host string `json:"host"` // The remote address RemoteAddr string `json:"remote_addr"` // The client's TLS connection state ConnectionState *tls.ConnectionState `json:"connection_state"` }
Click to show internal directories.
Click to hide internal directories.