path: tests/fixtures/llhttp/response/no-content-length-no-transfer-encoding.yml
name: No Content-Length, No Transfer-Encoding
checked: true
source:
  path: test/response/sample.md
  line: 665
meta:
  type: response
input:
- HTTP/1.1 200 OK
- 'Content-Type: text/plain'
- ''
- hello world
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=2 span[status]="OK"
- off=17 status complete
- off=17 len=12 span[header_field]="Content-Type"
- off=30 header_field complete
- off=31 len=10 span[header_value]="text/plain"
- off=43 header_value complete
- off=45 headers complete status=200 v=1/1 flags=0 content_length=0
- off=45 len=11 span[body]="hello world"
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: OK
- offset: 17
  type: header_name
  payload: Content-Type
- offset: 31
  type: header_value
  payload: text/plain
- offset: 45
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: null
- offset: 45
  type: data
  payload: hello world
