Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 transport. 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 transport.HeadersCompleted to notify http server about this, attaching all the pending data as an extra. Body must be processed separately
type Serializer ¶ added in v0.15.0
type Serializer struct {
// contains filtered or unexported fields
}
func NewSerializer ¶ added in v0.15.0
func NewSerializer(buff []byte, fileBuffSize int, defHdrs map[string]string) *Serializer
type Transport ¶
type Transport struct { *Parser *Serializer }
Click to show internal directories.
Click to hide internal directories.