path: tests/fixtures/llhttp/request/query-request.yml
name: QUERY Request
checked: true
source:
  path: test/request/method.md
  line: 482
meta:
  type: request
input:
- QUERY /contacts HTTP/1.1
- 'Host: example.org'
- 'Content-Type: example/query'
- 'Accept: text/csv'
- 'Content-Length: 41'
- ''
- select surname, givenname, email limit 10
llhttp:
- off=0 message begin
- off=0 len=5 span[method]="QUERY"
- off=5 method complete
- off=6 len=9 span[url]="/contacts"
- 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=11 span[header_value]="example.org"
- off=45 header_value complete
- off=45 len=12 span[header_field]="Content-Type"
- off=58 header_field complete
- off=59 len=13 span[header_value]="example/query"
- off=74 header_value complete
- off=74 len=6 span[header_field]="Accept"
- off=81 header_field complete
- off=82 len=8 span[header_value]="text/csv"
- off=92 header_value complete
- off=92 len=14 span[header_field]="Content-Length"
- off=107 header_field complete
- off=108 len=2 span[header_value]="41"
- off=112 header_value complete
- off=114 headers complete method=46 v=1/1 flags=20 content_length=41
- off=114 len=41 span[body]="select surname, givenname, email limit 10"
- off=155 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: QUERY
- offset: 6
  type: url
  payload: /contacts
- 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: example.org
- offset: 45
  type: header_name
  payload: Content-Type
- offset: 59
  type: header_value
  payload: example/query
- offset: 74
  type: header_name
  payload: Accept
- offset: 82
  type: header_value
  payload: text/csv
- offset: 92
  type: header_name
  payload: Content-Length
- offset: 108
  type: header_value
  payload: '41'
- offset: 114
  type: headers
  payload:
    method: QUERY
    status: null
    url: /contacts
    protocol: HTTP
    version: '1.1'
    body: 41
- offset: 114
  type: data
  payload: select surname, givenname, email limit 10
- offset: 155
  type: body
  payload: null
- offset: 155
  type: complete
  payload: null
