Scanner represents header tokens scanner. See https://tools.ietf.org/html/rfc2616#section-2
| 25 | // Scanner represents header tokens scanner. |
| 26 | // See https://tools.ietf.org/html/rfc2616#section-2 |
| 27 | type 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. |
| 38 | func NewScanner(data []byte) *Scanner { |
nothing calls this directly
no outgoing calls
no test coverage detected