path: tests/fixtures/llhttp/response/should-parse-multiple-events.yml
name: Should Parse Multiple Events
checked: true
source:
  path: test/response/pipelining.md
  line: 4
meta:
  type: response
input:
- HTTP/1.1 200 OK
- 'Content-Length: 3'
- ''
- AAA
- HTTP/1.1 201 Created
- 'Content-Length: 4'
- ''
- BBBB
- HTTP/1.1 202 Accepted
- 'Content-Length: 5'
- ''
- CCCC
llhttp:
- off=0 message begin
- off=0 len=4 span[protocol]="HTTP"
- off=4 protocol complete
- off=5 len=3 span[version]="1.1"
- off=8 version complete
- off=13 len=2 span[status]="OK"
- off=17 status complete
- off=17 len=14 span[header_field]="Content-Length"
- off=32 header_field complete
- off=33 len=1 span[header_value]="3"
- off=36 header_value complete
- off=38 headers complete status=200 v=1/1 flags=20 content_length=3
- off=38 len=3 span[body]="AAA"
- off=41 message complete
- off=43 reset
- off=43 message begin
- off=43 len=4 span[protocol]="HTTP"
- off=47 protocol complete
- off=48 len=3 span[version]="1.1"
- off=51 version complete
- off=56 len=7 span[status]="Created"
- off=65 status complete
- off=65 len=14 span[header_field]="Content-Length"
- off=80 header_field complete
- off=81 len=1 span[header_value]="4"
- off=84 header_value complete
- off=86 headers complete status=201 v=1/1 flags=20 content_length=4
- off=86 len=4 span[body]="BBBB"
- off=90 message complete
- off=92 reset
- off=92 message begin
- off=92 len=4 span[protocol]="HTTP"
- off=96 protocol complete
- off=97 len=3 span[version]="1.1"
- off=100 version complete
- off=105 len=8 span[status]="Accepted"
- off=115 status complete
- off=115 len=14 span[header_field]="Content-Length"
- off=130 header_field complete
- off=131 len=1 span[header_value]="5"
- off=134 header_value complete
- off=136 headers complete status=202 v=1/1 flags=20 content_length=5
- off=136 len=4 span[body]="CCCC"
output:
- offset: 0
  type: response
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: protocol
  payload: HTTP
- offset: 5
  type: version
  payload: '1.1'
- offset: 9
  type: status
  payload: '200'
- offset: 13
  type: reason
  payload: OK
- offset: 17
  type: header_name
  payload: Content-Length
- offset: 33
  type: header_value
  payload: '3'
- offset: 38
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: 3
- offset: 38
  type: data
  payload: AAA
- offset: 41
  type: body
  payload: null
- offset: 41
  type: complete
  payload: null
- offset: 41
  type: response
  payload: null
- offset: 41
  type: begin
  payload: null
- offset: 43
  type: protocol
  payload: HTTP
- offset: 48
  type: version
  payload: '1.1'
- offset: 52
  type: status
  payload: '201'
- offset: 56
  type: reason
  payload: Created
- offset: 65
  type: header_name
  payload: Content-Length
- offset: 81
  type: header_value
  payload: '4'
- offset: 86
  type: headers
  payload:
    method: null
    status: 201
    url: null
    protocol: HTTP
    version: '1.1'
    body: 4
- offset: 86
  type: data
  payload: BBBB
- offset: 90
  type: body
  payload: null
- offset: 90
  type: complete
  payload: null
- offset: 90
  type: response
  payload: null
- offset: 90
  type: begin
  payload: null
- offset: 92
  type: protocol
  payload: HTTP
- offset: 97
  type: version
  payload: '1.1'
- offset: 101
  type: status
  payload: '202'
- offset: 105
  type: reason
  payload: Accepted
- offset: 115
  type: header_name
  payload: Content-Length
- offset: 131
  type: header_value
  payload: '5'
- offset: 136
  type: headers
  payload:
    method: null
    status: 202
    url: null
    protocol: HTTP
    version: '1.1'
    body: 5
- offset: 136
  type: data
  payload: CCCC
