path: tests/fixtures/llhttp/request/pri-request-http2.yml
name: PRI Request HTTP2
checked: true
source:
  path: test/request/method.md
  line: 458
meta:
  type: request
input:
- PRI * HTTP/1.1
- ''
- SM
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="PRI"
- off=3 method complete
- off=4 len=1 span[url]="*"
- off=6 url complete
- off=6 len=4 span[protocol]="HTTP"
- off=10 protocol complete
- off=11 len=3 span[version]="1.1"
- off=14 version complete
- off=24 error code=23 reason="Pause on PRI/Upgrade"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: error
  payload:
    code: UNSUPPORTED_HTTP_VERSION
    description: PRI is only valid with HTTP/2.0
