path: tests/fixtures/llhttp/response/response-without-content-length-but-with-body.yml
name: Response Without Content-Length, But With Body
checked: true
source:
  path: test/response/content-length.md
  line: 4
meta:
  type: response
input:
- HTTP/1.1 200 OK
- 'Date: Tue, 04 Aug 2009 07:59:32 GMT'
- 'Server: Apache'
- 'X-Powered-By: Servlet/2.5 JSP/2.1'
- 'Content-Type: text/xml; charset=utf-8'
- 'Connection: close'
- ''
- <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\
- <SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n\
- '  <SOAP-ENV:Body>\n\'
- '    <SOAP-ENV:Fault>\n\'
- '       <faultcode>SOAP-ENV:Client</faultcode>\n\'
- '       <faultstring>Client Error</faultstring>\n\'
- '    </SOAP-ENV:Fault>\n\'
- '  </SOAP-ENV:Body>\n\'
- </SOAP-ENV:Envelope>
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=4 span[header_field]="Date"
- off=22 header_field complete
- off=23 len=29 span[header_value]="Tue, 04 Aug 2009 07:59:32 GMT"
- off=54 header_value complete
- off=54 len=6 span[header_field]="Server"
- off=61 header_field complete
- off=62 len=6 span[header_value]="Apache"
- off=70 header_value complete
- off=70 len=12 span[header_field]="X-Powered-By"
- off=83 header_field complete
- off=84 len=19 span[header_value]="Servlet/2.5 JSP/2.1"
- off=105 header_value complete
- off=105 len=12 span[header_field]="Content-Type"
- off=118 header_field complete
- off=119 len=23 span[header_value]="text/xml; charset=utf-8"
- off=144 header_value complete
- off=144 len=10 span[header_field]="Connection"
- off=155 header_field complete
- off=156 len=5 span[header_value]="close"
- off=163 header_value complete
- off=165 headers complete status=200 v=1/1 flags=2 content_length=0
- off=165 len=42 span[body]="<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- off=207 len=1 span[body]=lf
- off=208 len=80 span[body]="<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">"
- off=288 len=1 span[body]=lf
- off=289 len=17 span[body]="  <SOAP-ENV:Body>"
- off=306 len=1 span[body]=lf
- off=307 len=20 span[body]="    <SOAP-ENV:Fault>"
- off=327 len=1 span[body]=lf
- off=328 len=45 span[body]="       <faultcode>SOAP-ENV:Client</faultcode>"
- off=373 len=1 span[body]=lf
- off=374 len=46 span[body]="       <faultstring>Client Error</faultstring>"
- off=420 len=1 span[body]=lf
- off=421 len=21 span[body]="    </SOAP-ENV:Fault>"
- off=442 len=1 span[body]=lf
- off=443 len=18 span[body]="  </SOAP-ENV:Body>"
- off=461 len=1 span[body]=lf
- off=462 len=20 span[body]="</SOAP-ENV:Envelope>"
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: Date
- offset: 23
  type: header_value
  payload: Tue, 04 Aug 2009 07:59:32 GMT
- offset: 54
  type: header_name
  payload: Server
- offset: 62
  type: header_value
  payload: Apache
- offset: 70
  type: header_name
  payload: X-Powered-By
- offset: 84
  type: header_value
  payload: Servlet/2.5 JSP/2.1
- offset: 105
  type: header_name
  payload: Content-Type
- offset: 119
  type: header_value
  payload: text/xml; charset=utf-8
- offset: 144
  type: header_name
  payload: Connection
- offset: 156
  type: header_value
  payload: close
- offset: 165
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: null
- offset: 165
  type: data
  payload: |-
    <?xml version=\"1.0\" encoding=\"UTF-8\"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">
      <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
           <faultcode>SOAP-ENV:Client</faultcode>
           <faultstring>Client Error</faultstring>
        </SOAP-ENV:Fault>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
