path: tests/fixtures/llhttp/request/line-folding-in-header-value-with-lf.yml
name: Line Folding In Header Value With LF
checked: true
source:
  path: test/request/sample.md
  line: 394
meta:
  type: request
input:
- GET / HTTP/1.1
- 'Line1:   abc\n\'
- \tdef\n\
- ' ghi\n\'
- \t\tjkl\n\
- '  mno \n\'
- \t \tqrs\n\
- 'Line2: \t line2\t\n\'
- Line3:\n\
- ' line3\n\'
- 'Line4: \n\'
- ' \n\'
- Connection:\n\
- ' close\n\'
- \n
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="GET"
- off=3 method complete
- off=4 len=1 span[url]="/"
- off=6 url complete
- off=6 len=4 span[protocol]="HTTP"
- off=10 protocol complete
- off=11 len=3 span[version]="1.1"
- off=14 version complete
- off=16 len=5 span[header_field]="Line1"
- off=22 header_field complete
- off=25 len=3 span[header_value]="abc"
- off=28 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: GET
- offset: 4
  type: url
  payload: /
- offset: 6
  type: protocol
  payload: HTTP
- offset: 11
  type: version
  payload: '1.1'
- offset: 16
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid header field value character
