path: tests/fixtures/llhttp/request/ice-protocol-and-get-method.yml
name: ICE Protocol And GET Method
checked: true
source:
  path: test/request/invalid.md
  line: 4
meta:
  type: request
input:
- GET /music/sweet/music ICE/1.0
- 'Host: example.com'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="GET"
- off=3 method complete
- off=4 len=18 span[url]="/music/sweet/music"
- off=23 url complete
- off=23 len=3 span[protocol]="ICE"
- off=26 protocol complete
- off=26 error code=8 reason="Expected SOURCE method for ICE/x.x request"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid protocol name
