MCPcopy Create free account
hub / github.com/gobwas/httphead / Scanner

Struct Scanner

lexer.go:27–35  ·  view source on GitHub ↗

Scanner represents header tokens scanner. See https://tools.ietf.org/html/rfc2616#section-2

Source from the content-addressed store, hash-verified

25// Scanner represents header tokens scanner.
26// See https://tools.ietf.org/html/rfc2616#section-2
27type Scanner struct {
28 data []byte
29 pos int
30
31 itemType ItemType
32 itemBytes []byte
33
34 err bool
35}
36
37// NewScanner creates new RFC2616 data scanner.
38func NewScanner(data []byte) *Scanner {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected