path: tests/fixtures/llhttp/response/http-304-with-content-length.yml
name: HTTP 304 With Content-Length
checked: true
source:
  path: test/response/connection.md
  line: 492
meta:
  type: response
input:
- HTTP/1.1 304 Not Modified
- 'Content-Length: 10'
- ''
- ''
- HTTP/1.1 200 OK
- 'Content-Length: 5'
- ''
- hello
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=14 span[header_field]="Content-Length"
- off=42 header_field complete
- off=43 len=2 span[header_value]="10"
- off=47 header_value complete
- off=49 headers complete status=304 v=1/1 flags=20 content_length=10
- off=49 message complete
- off=51 reset
- off=51 message begin
- off=51 len=4 span[protocol]="HTTP"
- off=55 protocol complete
- off=56 len=3 span[version]="1.1"
- off=59 version complete
- off=64 len=2 span[status]="OK"
- off=68 status complete
- off=68 len=14 span[header_field]="Content-Length"
- off=83 header_field complete
- off=84 len=1 span[header_value]="5"
- off=87 header_value complete
- off=89 headers complete status=200 v=1/1 flags=20 content_length=5
- off=89 len=5 span[body]="hello"
- off=94 message complete
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: header_name
  payload: Content-Length
- offset: 43
  type: header_value
  payload: '10'
- offset: 49
  type: headers
  payload:
    method: null
    status: 304
    url: null
    protocol: HTTP
    version: '1.1'
    body: 10
- offset: 49
  type: complete
  payload: null
- offset: 49
  type: response
  payload: null
- offset: 49
  type: begin
  payload: null
- offset: 51
  type: protocol
  payload: HTTP
- offset: 56
  type: version
  payload: '1.1'
- offset: 60
  type: status
  payload: '200'
- offset: 64
  type: reason
  payload: OK
- offset: 68
  type: header_name
  payload: Content-Length
- offset: 84
  type: header_value
  payload: '5'
- offset: 89
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: 5
- offset: 89
  type: data
  payload: hello
- offset: 94
  type: body
  payload: null
- offset: 94
  type: complete
  payload: null
