path: tests/fixtures/llhttp/response/simple-response.yml
name: Simple Response
checked: true
source:
  path: test/response/sample.md
  line: 4
meta:
  type: response
input:
- HTTP/1.1 200 OK
- 'Header1: Value1'
- Header2:\t Value2
- 'Content-Length: 0'
- ''
- ''
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=7 span[header_field]="Header1"
- off=25 header_field complete
- off=26 len=6 span[header_value]="Value1"
- off=34 header_value complete
- off=34 len=7 span[header_field]="Header2"
- off=42 header_field complete
- off=44 len=6 span[header_value]="Value2"
- off=52 header_value complete
- off=52 len=14 span[header_field]="Content-Length"
- off=67 header_field complete
- off=68 len=1 span[header_value]="0"
- off=71 header_value complete
- off=73 headers complete status=200 v=1/1 flags=20 content_length=0
- off=73 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: '200'
- offset: 13
  type: reason
  payload: OK
- offset: 17
  type: header_name
  payload: Header1
- offset: 26
  type: header_value
  payload: Value1
- offset: 34
  type: header_name
  payload: Header2
- offset: 44
  type: header_value
  payload: Value2
- offset: 52
  type: header_name
  payload: Content-Length
- offset: 68
  type: header_value
  payload: '0'
- offset: 73
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: 0
- offset: 73
  type: complete
  payload: null
