Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRawHTTPRequest ¶
Reconstruct the raw request content from a Request struct
Types ¶
type Request ¶
type Request struct { CommandLine string //GET / HTTTP/1.1 Method string Version string Headers http.Header Body []byte }
func (*Request) AddCookie ¶
From net http package (+ withdraw sanitization) AddCookie adds a cookie to the request. Per RFC 6265 section 5.4, AddCookie does not attach more than one Cookie header field. That means all cookies, if any, are written into the same line, separated by semicolon. AddCookie only sanitizes c's name and value, and does not sanitize a Cookie header already present in the request.
Click to show internal directories.
Click to hide internal directories.