path: tests/fixtures/llhttp/request/keep-alive-crlf-between-requests-implicit-keep-alive.yml
name: keep-alive / CRLF Between Requests, Implicit Keep-alive
checked: true
source:
  path: test/request/connection.md
  line: 156
meta:
  type: request
input:
- POST / HTTP/1.1
- 'Host: www.example.com'
- 'Content-Type: application/x-www-form-urlencoded'
- 'Content-Length: 4'
- ''
- q=42
- ''
- GET / HTTP/1.1
llhttp:
- off=0 message begin
- off=0 len=4 span[method]="POST"
- off=4 method complete
- off=5 len=1 span[url]="/"
- off=7 url complete
- off=7 len=4 span[protocol]="HTTP"
- off=11 protocol complete
- off=12 len=3 span[version]="1.1"
- off=15 version complete
- off=17 len=4 span[header_field]="Host"
- off=22 header_field complete
- off=23 len=15 span[header_value]="www.example.com"
- off=40 header_value complete
- off=40 len=12 span[header_field]="Content-Type"
- off=53 header_field complete
- off=54 len=33 span[header_value]="application/x-www-form-urlencoded"
- off=89 header_value complete
- off=89 len=14 span[header_field]="Content-Length"
- off=104 header_field complete
- off=105 len=1 span[header_value]="4"
- off=108 header_value complete
- off=110 headers complete method=3 v=1/1 flags=20 content_length=4
- off=110 len=4 span[body]="q=42"
- off=114 message complete
- off=118 reset
- off=118 message begin
- off=118 len=3 span[method]="GET"
- off=121 method complete
- off=122 len=1 span[url]="/"
- off=124 url complete
- off=124 len=4 span[protocol]="HTTP"
- off=128 protocol complete
- off=129 len=3 span[version]="1.1"
- off=132 version complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: POST
- offset: 5
  type: url
  payload: /
- offset: 7
  type: protocol
  payload: HTTP
- offset: 12
  type: version
  payload: '1.1'
- offset: 17
  type: header_name
  payload: Host
- offset: 23
  type: header_value
  payload: www.example.com
- offset: 40
  type: header_name
  payload: Content-Type
- offset: 54
  type: header_value
  payload: application/x-www-form-urlencoded
- offset: 89
  type: header_name
  payload: Content-Length
- offset: 105
  type: header_value
  payload: '4'
- offset: 110
  type: headers
  payload:
    method: POST
    status: null
    url: /
    protocol: HTTP
    version: '1.1'
    body: 4
- offset: 110
  type: data
  payload: q=42
- offset: 114
  type: body
  payload: null
- offset: 114
  type: complete
  payload: null
- offset: 114
  type: request
  payload: null
- offset: 114
  type: begin
  payload: null
