path: tests/fixtures/llhttp/response/response-starting-with-crlf.yml
name: Response Starting With CRLF
checked: true
source:
  path: test/response/sample.md
  line: 695
meta:
  type: response
input:
- \r\nHTTP/1.1 200 OK
- 'Header1: Value1'
- Header2:\t Value2
- 'Content-Length: 0'
- ''
- ''
llhttp:
- off=2 message begin
- off=2 len=4 span[protocol]="HTTP"
- off=6 protocol complete
- off=7 len=3 span[version]="1.1"
- off=10 version complete
- off=15 len=2 span[status]="OK"
- off=19 status complete
- off=19 len=7 span[header_field]="Header1"
- off=27 header_field complete
- off=28 len=6 span[header_value]="Value1"
- off=36 header_value complete
- off=36 len=7 span[header_field]="Header2"
- off=44 header_field complete
- off=46 len=6 span[header_value]="Value2"
- off=54 header_value complete
- off=54 len=14 span[header_field]="Content-Length"
- off=69 header_field complete
- off=70 len=1 span[header_value]="0"
- off=73 header_value complete
- off=75 headers complete status=200 v=1/1 flags=20 content_length=0
- off=75 message complete
output:
- offset: 0
  type: response
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 2
  type: protocol
  payload: HTTP
- offset: 7
  type: version
  payload: '1.1'
- offset: 11
  type: status
  payload: '200'
- offset: 15
  type: reason
  payload: OK
- offset: 19
  type: header_name
  payload: Header1
- offset: 28
  type: header_value
  payload: Value1
- offset: 36
  type: header_name
  payload: Header2
- offset: 46
  type: header_value
  payload: Value2
- offset: 54
  type: header_name
  payload: Content-Length
- offset: 70
  type: header_value
  payload: '0'
- offset: 75
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: 0
- offset: 75
  type: complete
  payload: null
