Documentation ¶
Index ¶
Constants ¶
View Source
const ( Pending requestState = iota + 1 HeadersCompleted Error )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a stream-based http requests parser. It modifies request object by pointer in performance purposes. Decodes query-encoded values by its own, you can see that by presented states ePathDecode1Char, ePathDecode2Char, etc. When headers are parsed, parser returns state HeadersCompleted to notify http server about this, attaching all the pending data as an extra. Body must be processed separately
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
func NewSerializer ¶
type Suit ¶
type Suit struct { *Parser *Serializer // contains filtered or unexported fields }
func Initialize ¶
Initialize is the same constructor as just New, but consumes fewer arguments.
Click to show internal directories.
Click to hide internal directories.