path: tests/fixtures/llhttp/request/chunked-chunk-extensions-quoting.yml
name: chunked / Chunk Extensions Quoting
checked: true
source:
  path: test/request/transfer-encoding.md
  line: 366
meta:
  type: request
input:
- POST /chunked_w_unicorns_after_length HTTP/1.1
- 'Transfer-Encoding: chunked'
- ''
- 5;ilovew3="I \"love\"; \\extensions\\";somuchlove="aretheseparametersfor";blah;foo=bar
- 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=28 span[chunk_extension_value]=""I \"love\"; \\extensions\\""
- off=116 chunk_extension_value complete
- off=117 len=10 span[chunk_extension_name]="somuchlove"
- off=128 chunk_extension_name complete
- off=128 len=23 span[chunk_extension_value]=""aretheseparametersfor""
- off=151 chunk_extension_value complete
- off=152 len=4 span[chunk_extension_name]="blah"
- off=157 chunk_extension_name complete
- off=157 len=3 span[chunk_extension_name]="foo"
- off=161 chunk_extension_name complete
- off=161 len=3 span[chunk_extension_value]="bar"
- off=165 chunk_extension_value complete
- off=166 chunk header len=5
- off=166 len=5 span[body]="hello"
- off=173 chunk complete
- off=175 len=8 span[chunk_extension_name]="blahblah"
- off=184 chunk_extension_name complete
- off=184 len=4 span[chunk_extension_name]="blah"
- off=189 chunk_extension_name complete
- off=190 chunk header len=6
- off=190 len=6 span[body]=" world"
- off=198 chunk complete
- off=201 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_value
  payload: '"I \"love\"; \\extensions\\"'
- offset: 117
  type: chunk_extension_name
  payload: somuchlove
- offset: 128
  type: chunk_extension_value
  payload: '"aretheseparametersfor"'
- offset: 152
  type: chunk_extension_name
  payload: blah
- offset: 157
  type: chunk_extension_name
  payload: foo
- offset: 161
  type: chunk_extension_value
  payload: bar
- offset: 166
  type: chunk
  payload: hello
- offset: 166
  type: data
  payload: hello
- offset: 173
  type: chunk_length
  payload: '6'
- offset: 175
  type: chunk_extension_name
  payload: blahblah
- offset: 184
  type: chunk_extension_name
  payload: blah
- offset: 190
  type: chunk
  payload: ' world'
- offset: 190
  type: data
  payload: ' world'
- offset: 198
  type: chunk_length
  payload: '0'
- offset: 201
  type: chunk
  payload: null
- offset: 201
  type: body
  payload: null
