Documentation ¶
Index ¶
- Constants
- Variables
- type Parser
- func (p *Parser) Append(buf []byte)
- func (p *Parser) ReadBody(data []byte) (*http.Request, bool, error)
- func (p *Parser) ReadHeader(data []byte) (*http.Request, bool, error)
- func (p *Parser) ReadRequest(data []byte) (*http.Request, bool, error)
- func (p *Parser) ReadRequestLine(data []byte) (*http.Request, bool, error)
Constants ¶
View Source
const ( // StateURL . StateURL = 0 // StateHeader . StateHeader = 1 // StateBody . StateBody = 2 )
View Source
const ( // LineTypeURL . LineTypeURL = 1 // LineTypeHeader . LineTypeHeader = 2 // LineTypeBody . LineTypeBody = 3 )
View Source
const ( // CR . CR = '\r' // LF . LF = '\n' // COL . COL = ':' // SPA . SPA = ' ' )
Variables ¶
View Source
var ( // ErrDataNotEnouth . ErrDataNotEnouth = errors.New("data not enougth") // ErrInvalidData . ErrInvalidData = errors.New("invalid data") )
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser .
func (*Parser) ReadHeader ¶
ReadHeader .
func (*Parser) ReadRequest ¶
ReadRequest .
Click to show internal directories.
Click to hide internal directories.