path: tests/fixtures/llhttp/request/headers-separated-by-lf.yml
name: Headers Separated By LF
checked: true
source:
  path: test/request/invalid.md
  line: 113
meta:
  type: request
input:
- POST / HTTP/1.1
- 'Host: localhost:5000'
- 'x:x\nTransfer-Encoding: chunked'
- ''
- '1'
- A
- '0'
- ''
llhttp:
- off=0 message begin
- off=0 len=4 span[method]="POST"
- off=4 method complete
- off=5 len=1 span[url]="/"
- off=7 url complete
- off=7 len=4 span[protocol]="HTTP"
- off=11 protocol complete
- off=12 len=3 span[version]="1.1"
- off=15 version complete
- off=17 len=4 span[header_field]="Host"
- off=22 header_field complete
- off=23 len=14 span[header_value]="localhost:5000"
- off=39 header_value complete
- off=39 len=1 span[header_field]="x"
- off=41 header_field complete
- off=41 len=1 span[header_value]="x"
- off=42 error code=25 reason="Missing expected CR after header value"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: POST
- offset: 5
  type: url
  payload: /
- offset: 7
  type: protocol
  payload: HTTP
- offset: 12
  type: version
  payload: '1.1'
- offset: 17
  type: header_name
  payload: Host
- offset: 23
  type: header_value
  payload: localhost:5000
- offset: 39
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid header field value character
