path: tests/fixtures/llhttp/request/purge-request.yml
name: PURGE Request
checked: true
source:
  path: test/request/method.md
  line: 217
meta:
  type: request
input:
- PURGE /file.txt HTTP/1.1
- 'Host: www.example.com'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=5 span[method]="PURGE"
- off=5 method complete
- off=6 len=9 span[url]="/file.txt"
- off=16 url complete
- off=16 len=4 span[protocol]="HTTP"
- off=20 protocol complete
- off=21 len=3 span[version]="1.1"
- off=24 version complete
- off=26 len=4 span[header_field]="Host"
- off=31 header_field complete
- off=32 len=15 span[header_value]="www.example.com"
- off=49 header_value complete
- off=51 headers complete method=29 v=1/1 flags=0 content_length=0
- off=51 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: PURGE
- offset: 6
  type: url
  payload: /file.txt
- offset: 16
  type: protocol
  payload: HTTP
- offset: 21
  type: version
  payload: '1.1'
- offset: 26
  type: header_name
  payload: Host
- offset: 32
  type: header_value
  payload: www.example.com
- offset: 51
  type: headers
  payload:
    method: PURGE
    status: null
    url: /file.txt
    protocol: HTTP
    version: '1.1'
    body: null
- offset: 51
  type: complete
  payload: null
