path: tests/fixtures/llhttp/request/patch-request.yml
name: PATCH Request
checked: true
source:
  path: test/request/method.md
  line: 173
meta:
  type: request
input:
- PATCH /file.txt HTTP/1.1
- 'Host: www.example.com'
- 'Content-Type: application/example'
- 'If-Match: "e0023aa4e"'
- 'Content-Length: 10'
- ''
- cccccccccc
llhttp:
- off=0 message begin
- off=0 len=5 span[method]="PATCH"
- 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=49 len=12 span[header_field]="Content-Type"
- off=62 header_field complete
- off=63 len=19 span[header_value]="application/example"
- off=84 header_value complete
- off=84 len=8 span[header_field]="If-Match"
- off=93 header_field complete
- off=94 len=11 span[header_value]=""e0023aa4e""
- off=107 header_value complete
- off=107 len=14 span[header_field]="Content-Length"
- off=122 header_field complete
- off=123 len=2 span[header_value]="10"
- off=127 header_value complete
- off=129 headers complete method=28 v=1/1 flags=20 content_length=10
- off=129 len=10 span[body]="cccccccccc"
- off=139 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: PATCH
- 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: 49
  type: header_name
  payload: Content-Type
- offset: 63
  type: header_value
  payload: application/example
- offset: 84
  type: header_name
  payload: If-Match
- offset: 94
  type: header_value
  payload: '"e0023aa4e"'
- offset: 107
  type: header_name
  payload: Content-Length
- offset: 123
  type: header_value
  payload: '10'
- offset: 129
  type: headers
  payload:
    method: PATCH
    status: null
    url: /file.txt
    protocol: HTTP
    version: '1.1'
    body: 10
- offset: 129
  type: data
  payload: cccccccccc
- offset: 139
  type: body
  payload: null
- offset: 139
  type: complete
  payload: null
