path: tests/fixtures/llhttp/request/content-length-with-follow-up-headers.yml
name: Content-Length With Follow-up Headers
checked: true
source:
  path: test/request/content-length.md
  line: 33
meta:
  type: request
input:
- PUT /url HTTP/1.1
- 'Content-Length: 003'
- 'Ohai: world'
- ''
- abc
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=14 span[header_field]="Content-Length"
- off=34 header_field complete
- off=35 len=3 span[header_value]="003"
- off=40 header_value complete
- off=40 len=4 span[header_field]="Ohai"
- off=45 header_field complete
- off=46 len=5 span[header_value]="world"
- off=53 header_value complete
- off=55 headers complete method=4 v=1/1 flags=20 content_length=3
- off=55 len=3 span[body]="abc"
- off=58 message complete
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: header_name
  payload: Content-Length
- offset: 35
  type: header_value
  payload: '003'
- offset: 40
  type: header_name
  payload: Ohai
- offset: 46
  type: header_value
  payload: world
- offset: 55
  type: headers
  payload:
    method: PUT
    status: null
    url: /url
    protocol: HTTP
    version: '1.1'
    body: 3
- offset: 55
  type: data
  payload: abc
- offset: 58
  type: body
  payload: null
- offset: 58
  type: complete
  payload: null
