path: tests/fixtures/llhttp/request/second-request-header-value-lenient.yml
name: Second Request Header Value (lenient)
checked: true
source:
  path: test/request/lenient-headers.md
  line: 34
meta:
  type: request-lenient-headers
input:
- GET /url HTTP/1.1
- 'Header1: Okay'
- ''
- ''
- GET /url HTTP/1.1
- 'Header1: \f'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="GET"
- 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=7 span[header_field]="Header1"
- off=27 header_field complete
- off=28 len=4 span[header_value]="Okay"
- off=34 header_value complete
- off=36 headers complete method=1 v=1/1 flags=0 content_length=0
- off=36 message complete
- off=38 reset
- off=38 message begin
- off=38 len=3 span[method]="GET"
- off=41 method complete
- off=42 len=4 span[url]="/url"
- off=47 url complete
- off=47 len=4 span[protocol]="HTTP"
- off=51 protocol complete
- off=52 len=3 span[version]="1.1"
- off=55 version complete
- off=57 len=7 span[header_field]="Header1"
- off=65 header_field complete
- off=66 len=1 span[header_value]="\f"
- off=69 header_value complete
- off=71 headers complete method=1 v=1/1 flags=0 content_length=0
- off=71 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: GET
- offset: 4
  type: url
  payload: /url
- offset: 9
  type: protocol
  payload: HTTP
- offset: 14
  type: version
  payload: '1.1'
- offset: 19
  type: header_name
  payload: Header1
- offset: 28
  type: header_value
  payload: Okay
- offset: 36
  type: headers
  payload:
    method: GET
    status: null
    url: /url
    protocol: HTTP
    version: '1.1'
    body: null
- offset: 36
  type: complete
  payload: null
- offset: 36
  type: request
  payload: null
- offset: 36
  type: begin
  payload: null
- offset: 38
  type: method
  payload: GET
- offset: 42
  type: url
  payload: /url
- offset: 47
  type: protocol
  payload: HTTP
- offset: 52
  type: version
  payload: '1.1'
- offset: 57
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid header field value character
