path: tests/fixtures/llhttp/request/keep-alive-restarting-when-keep-alive-is-explicitly.yml
name: keep-alive / Restarting When Keep-alive Is Explicitly
checked: true
source:
  path: test/request/connection.md
  line: 34
meta:
  type: request
input:
- PUT /url HTTP/1.1
- 'Connection: keep-alive'
- ''
- PUT /url HTTP/1.1
- 'Connection: keep-alive'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="PUT"
- off=3 method complete
- off=4 len=4 span[url]="/url"
- off=9 url complete
- off=9 len=4 span[protocol]="HTTP"
- off=13 protocol complete
- off=14 len=3 span[version]="1.1"
- off=17 version complete
- off=19 len=10 span[header_field]="Connection"
- off=30 header_field complete
- off=31 len=10 span[header_value]="keep-alive"
- off=43 header_value complete
- off=45 headers complete method=4 v=1/1 flags=1 content_length=0
- off=45 message complete
- off=45 reset
- off=45 message begin
- off=45 len=3 span[method]="PUT"
- off=48 method complete
- off=49 len=4 span[url]="/url"
- off=54 url complete
- off=54 len=4 span[protocol]="HTTP"
- off=58 protocol complete
- off=59 len=3 span[version]="1.1"
- off=62 version complete
- off=64 len=10 span[header_field]="Connection"
- off=75 header_field complete
- off=76 len=10 span[header_value]="keep-alive"
- off=88 header_value complete
- off=90 headers complete method=4 v=1/1 flags=1 content_length=0
- off=90 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: PUT
- offset: 4
  type: url
  payload: /url
- offset: 9
  type: protocol
  payload: HTTP
- offset: 14
  type: version
  payload: '1.1'
- offset: 19
  type: header_name
  payload: Connection
- offset: 31
  type: header_value
  payload: keep-alive
- offset: 45
  type: headers
  payload:
    method: PUT
    status: null
    url: /url
    protocol: HTTP
    version: '1.1'
    body: null
- offset: 45
  type: complete
  payload: null
- offset: 45
  type: request
  payload: null
- offset: 45
  type: begin
  payload: null
- offset: 45
  type: method
  payload: PUT
- offset: 49
  type: url
  payload: /url
- offset: 54
  type: protocol
  payload: HTTP
- offset: 59
  type: version
  payload: '1.1'
- offset: 64
  type: header_name
  payload: Connection
- offset: 76
  type: header_value
  payload: keep-alive
- offset: 90
  type: headers
  payload:
    method: PUT
    status: null
    url: /url
    protocol: HTTP
    version: '1.1'
    body: null
- offset: 90
  type: complete
  payload: null
