path: tests/fixtures/llhttp/response/proxy-connection.yml
name: Proxy-Connection
checked: true
source:
  path: test/response/connection.md
  line: 4
meta:
  type: response
input:
- HTTP/1.1 200 OK
- 'Content-Type: text/html; charset=UTF-8'
- 'Content-Length: 11'
- 'Proxy-Connection: close'
- 'Date: Thu, 31 Dec 2009 20:55:48 +0000'
- ''
- 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=24 span[header_value]="text/html; charset=UTF-8"
- off=57 header_value complete
- off=57 len=14 span[header_field]="Content-Length"
- off=72 header_field complete
- off=73 len=2 span[header_value]="11"
- off=77 header_value complete
- off=77 len=16 span[header_field]="Proxy-Connection"
- off=94 header_field complete
- off=95 len=5 span[header_value]="close"
- off=102 header_value complete
- off=102 len=4 span[header_field]="Date"
- off=107 header_field complete
- off=108 len=31 span[header_value]="Thu, 31 Dec 2009 20:55:48 +0000"
- off=141 header_value complete
- off=143 headers complete status=200 v=1/1 flags=22 content_length=11
- off=143 len=11 span[body]="hello world"
- off=154 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: Content-Type
- offset: 31
  type: header_value
  payload: text/html; charset=UTF-8
- offset: 57
  type: header_name
  payload: Content-Length
- offset: 73
  type: header_value
  payload: '11'
- offset: 77
  type: header_name
  payload: Proxy-Connection
- offset: 95
  type: header_value
  payload: close
- offset: 102
  type: header_name
  payload: Date
- offset: 108
  type: header_value
  payload: Thu, 31 Dec 2009 20:55:48 +0000
- offset: 143
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: 11
- offset: 143
  type: data
  payload: hello world
- offset: 154
  type: body
  payload: null
- offset: 154
  type: complete
  payload: null
