path: tests/fixtures/llhttp/request/parsing-multiple-tokens-invalid-whitespace-token-with-connection-header-field.yml
name: Parsing multiple tokens / Invalid Whitespace Token With Connection Header Field
checked: true
source:
  path: test/request/connection.md
  line: 533
meta:
  type: request
input:
- PUT /url HTTP/1.1
- 'Connection : upgrade'
- 'Content-Length: 4'
- 'Upgrade: ws'
- ''
- abcdefgh
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="PUT"
- off=3 method complete
- off=4 len=4 span[url]="/url"
- off=9 url complete
- off=9 len=4 span[protocol]="HTTP"
- off=13 protocol complete
- off=14 len=3 span[version]="1.1"
- off=17 version complete
- off=19 len=10 span[header_field]="Connection"
- off=30 error code=10 reason="Invalid header field char"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: PUT
- offset: 4
  type: url
  payload: /url
- offset: 9
  type: protocol
  payload: HTTP
- offset: 14
  type: version
  payload: '1.1'
- offset: 19
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid header field name character
