Documentation ¶
Index ¶
Constants ¶
View Source
const TimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT"
TimeFormat is an example of the HTTP date format. It can be used in the ParseTime function.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Headers ¶
Headers is string key value map of the HTTP headers
func ReadHeaders ¶
ReadHeaders will parse the HTTP headers in a HTTP message. The reader must have already read the HTTP status line prior to calling this function.
func (*Headers) CacheControl ¶
CacheControl parses the Cache-Control header
type Request ¶
Request represents a HTTP request.
func NewRequest ¶
NewRequest returns a new Request created by reading the connection and parsing the HTTP request message.
Click to show internal directories.
Click to hide internal directories.