path: tests/fixtures/llhttp/request/options-request-with-rtsp.yml
name: OPTIONS Request With RTSP
checked: true
source:
  path: test/request/method.md
  line: 400
meta:
  type: request
input:
- OPTIONS /music/sweet/music RTSP/1.0
- 'Host: example.com'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=7 span[method]="OPTIONS"
- off=7 method complete
- off=8 len=18 span[url]="/music/sweet/music"
- off=27 url complete
- off=27 len=4 span[protocol]="RTSP"
- off=31 protocol complete
- off=32 len=3 span[version]="1.0"
- off=35 version complete
- off=37 len=4 span[header_field]="Host"
- off=42 header_field complete
- off=43 len=11 span[header_value]="example.com"
- off=56 header_value complete
- off=58 headers complete method=6 v=1/0 flags=0 content_length=0
- off=58 message complete
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid protocol
