path: tests/fixtures/llhttp/response/http-1-1-with-keep-alive-disabled-content-length.yml
name: HTTP/1.1 With Keep-alive Disabled, Content-length
checked: true
source:
  path: test/response/connection.md
  line: 225
meta:
  type: response
input:
- HTTP/1.1 200 No content
- 'Content-Length: 5'
- 'Connection: close'
- ''
- 2ad731e3-4dcd-4f70-b871-0ad284b29ffc
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=10 span[status]="No content"
- off=25 status complete
- off=25 len=14 span[header_field]="Content-Length"
- off=40 header_field complete
- off=41 len=1 span[header_value]="5"
- off=44 header_value complete
- off=44 len=10 span[header_field]="Connection"
- off=55 header_field complete
- off=56 len=5 span[header_value]="close"
- off=63 header_value complete
- off=65 headers complete status=200 v=1/1 flags=22 content_length=5
- off=65 len=5 span[body]="2ad73"
- off=70 message complete
- 'off=71 error code=5 reason="Data after `Connection: close`"'
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: '200'
- offset: 13
  type: reason
  payload: No content
- offset: 25
  type: header_name
  payload: Content-Length
- offset: 41
  type: header_value
  payload: '5'
- offset: 44
  type: header_name
  payload: Connection
- offset: 56
  type: header_value
  payload: close
- offset: 65
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: 5
- offset: 65
  type: data
  payload: 2ad73
- offset: 70
  type: body
  payload: null
- offset: 70
  type: complete
  payload: null
- offset: 65
  type: finish
  payload: null
- offset: 70
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Unexpected data
