path: tests/fixtures/llhttp/request/should-parse-multiple-events.yml
name: Should Parse Multiple Events
checked: true
source:
  path: test/request/pipelining.md
  line: 4
meta:
  type: request
input:
- POST /aaa HTTP/1.1
- 'Content-Length: 3'
- ''
- AAA
- PUT /bbb HTTP/1.1
- 'Content-Length: 4'
- ''
- BBBB
- PATCH /ccc HTTP/1.1
- 'Content-Length: 5'
- ''
- CCCC
llhttp:
- off=0 message begin
- off=0 len=4 span[method]="POST"
- off=4 method complete
- off=5 len=4 span[url]="/aaa"
- off=10 url complete
- off=10 len=4 span[protocol]="HTTP"
- off=14 protocol complete
- off=15 len=3 span[version]="1.1"
- off=18 version complete
- off=20 len=14 span[header_field]="Content-Length"
- off=35 header_field complete
- off=36 len=1 span[header_value]="3"
- off=39 header_value complete
- off=41 headers complete method=3 v=1/1 flags=20 content_length=3
- off=41 len=3 span[body]="AAA"
- off=44 message complete
- off=46 reset
- off=46 message begin
- off=46 len=3 span[method]="PUT"
- off=49 method complete
- off=50 len=4 span[url]="/bbb"
- off=55 url complete
- off=55 len=4 span[protocol]="HTTP"
- off=59 protocol complete
- off=60 len=3 span[version]="1.1"
- off=63 version 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 method=4 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=5 span[method]="PATCH"
- off=97 method complete
- off=98 len=4 span[url]="/ccc"
- off=103 url complete
- off=103 len=4 span[protocol]="HTTP"
- off=107 protocol complete
- off=108 len=3 span[version]="1.1"
- off=111 version complete
- off=113 len=14 span[header_field]="Content-Length"
- off=128 header_field complete
- off=129 len=1 span[header_value]="5"
- off=132 header_value complete
- off=134 headers complete method=28 v=1/1 flags=20 content_length=5
- off=134 len=4 span[body]="CCCC"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: POST
- offset: 5
  type: url
  payload: /aaa
- offset: 10
  type: protocol
  payload: HTTP
- offset: 15
  type: version
  payload: '1.1'
- offset: 20
  type: header_name
  payload: Content-Length
- offset: 36
  type: header_value
  payload: '3'
- offset: 41
  type: headers
  payload:
    method: POST
    status: null
    url: /aaa
    protocol: HTTP
    version: '1.1'
    body: 3
- offset: 41
  type: data
  payload: AAA
- offset: 44
  type: body
  payload: null
- offset: 44
  type: complete
  payload: null
- offset: 44
  type: request
  payload: null
- offset: 44
  type: begin
  payload: null
- offset: 46
  type: method
  payload: PUT
- offset: 50
  type: url
  payload: /bbb
- offset: 55
  type: protocol
  payload: HTTP
- offset: 60
  type: version
  payload: '1.1'
- offset: 65
  type: header_name
  payload: Content-Length
- offset: 81
  type: header_value
  payload: '4'
- offset: 86
  type: headers
  payload:
    method: PUT
    status: null
    url: /bbb
    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: request
  payload: null
- offset: 90
  type: begin
  payload: null
- offset: 92
  type: method
  payload: PATCH
- offset: 98
  type: url
  payload: /ccc
- offset: 103
  type: protocol
  payload: HTTP
- offset: 108
  type: version
  payload: '1.1'
- offset: 113
  type: header_name
  payload: Content-Length
- offset: 129
  type: header_value
  payload: '5'
- offset: 134
  type: headers
  payload:
    method: PATCH
    status: null
    url: /ccc
    protocol: HTTP
    version: '1.1'
    body: 5
- offset: 134
  type: data
  payload: CCCC
