path: tests/fixtures/llhttp/response/http-304-with-transfer-encoding.yml
name: HTTP 304 With Transfer-Encoding
checked: true
source:
  path: test/response/connection.md
  line: 537
meta:
  type: response
input:
- HTTP/1.1 304 Not Modified
- 'Transfer-Encoding: chunked'
- ''
- HTTP/1.1 200 OK
- 'Transfer-Encoding: chunked'
- ''
- '5'
- hello
- '0'
- ''
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=12 span[status]="Not Modified"
- off=27 status complete
- off=27 len=17 span[header_field]="Transfer-Encoding"
- off=45 header_field complete
- off=46 len=7 span[header_value]="chunked"
- off=55 header_value complete
- off=57 headers complete status=304 v=1/1 flags=208 content_length=0
- off=57 message complete
- off=57 reset
- off=57 message begin
- off=57 len=4 span[protocol]="HTTP"
- off=61 protocol complete
- off=62 len=3 span[version]="1.1"
- off=65 version complete
- off=70 len=2 span[status]="OK"
- off=74 status complete
- off=74 len=17 span[header_field]="Transfer-Encoding"
- off=92 header_field complete
- off=93 len=7 span[header_value]="chunked"
- off=102 header_value complete
- off=104 headers complete status=200 v=1/1 flags=208 content_length=0
- off=107 chunk header len=5
- off=107 len=5 span[body]="hello"
- off=114 chunk complete
- off=117 chunk header len=0
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: '304'
- offset: 13
  type: reason
  payload: Not Modified
- offset: 27
  type: error
  payload:
    code: UNEXPECTED_TRANSFER_ENCODING
    description: Unexpected Transfer-Encoding header for a response without body
