path: tests/fixtures/llhttp/request/chunked-chunk-extensions.yml
name: chunked / Chunk Extensions
checked: true
source:
  path: test/request/transfer-encoding.md
  line: 238
meta:
  type: request
input:
- POST /chunked_w_unicorns_after_length HTTP/1.1
- 'Transfer-Encoding: chunked'
- ''
- 5;ilovew3;somuchlove=aretheseparametersfor;another=withvalue
- hello
- 6;blahblah;blah
- ' world'
- '0'
- ''
llhttp:
- off=0 message begin
- off=0 len=4 span[method]="POST"
- off=4 method complete
- off=5 len=32 span[url]="/chunked_w_unicorns_after_length"
- off=38 url complete
- off=38 len=4 span[protocol]="HTTP"
- off=42 protocol complete
- off=43 len=3 span[version]="1.1"
- off=46 version complete
- off=48 len=17 span[header_field]="Transfer-Encoding"
- off=66 header_field complete
- off=67 len=7 span[header_value]="chunked"
- off=76 header_value complete
- off=78 headers complete method=3 v=1/1 flags=208 content_length=0
- off=80 len=7 span[chunk_extension_name]="ilovew3"
- off=88 chunk_extension_name complete
- off=88 len=10 span[chunk_extension_name]="somuchlove"
- off=99 chunk_extension_name complete
- off=99 len=21 span[chunk_extension_value]="aretheseparametersfor"
- off=121 chunk_extension_value complete
- off=121 len=7 span[chunk_extension_name]="another"
- off=129 chunk_extension_name complete
- off=129 len=9 span[chunk_extension_value]="withvalue"
- off=139 chunk_extension_value complete
- off=140 chunk header len=5
- off=140 len=5 span[body]="hello"
- off=147 chunk complete
- off=149 len=8 span[chunk_extension_name]="blahblah"
- off=158 chunk_extension_name complete
- off=158 len=4 span[chunk_extension_name]="blah"
- off=163 chunk_extension_name complete
- off=164 chunk header len=6
- off=164 len=6 span[body]=" world"
- off=172 chunk complete
- off=175 chunk header len=0
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: POST
- offset: 5
  type: url
  payload: /chunked_w_unicorns_after_length
- offset: 38
  type: protocol
  payload: HTTP
- offset: 43
  type: version
  payload: '1.1'
- offset: 48
  type: header_name
  payload: Transfer-Encoding
- offset: 67
  type: header_value
  payload: chunked
- offset: 78
  type: headers
  payload:
    method: POST
    status: null
    url: /chunked_w_unicorns_after_length
    protocol: HTTP
    version: '1.1'
    body: chunked
- offset: 78
  type: chunk_length
  payload: '5'
- offset: 80
  type: chunk_extension_name
  payload: ilovew3
- offset: 88
  type: chunk_extension_name
  payload: somuchlove
- offset: 99
  type: chunk_extension_value
  payload: aretheseparametersfor
- offset: 121
  type: chunk_extension_name
  payload: another
- offset: 129
  type: chunk_extension_value
  payload: withvalue
- offset: 140
  type: chunk
  payload: hello
- offset: 140
  type: data
  payload: hello
- offset: 147
  type: chunk_length
  payload: '6'
- offset: 149
  type: chunk_extension_name
  payload: blahblah
- offset: 158
  type: chunk_extension_name
  payload: blah
- offset: 164
  type: chunk
  payload: ' world'
- offset: 164
  type: data
  payload: ' world'
- offset: 172
  type: chunk_length
  payload: '0'
- offset: 175
  type: chunk
  payload: null
- offset: 175
  type: body
  payload: null
