path: tests/fixtures/llhttp/request/announce-request-with-rtsp.yml
name: ANNOUNCE Request With RTSP
checked: true
source:
  path: test/request/method.md
  line: 430
meta:
  type: request
input:
- ANNOUNCE /music/sweet/music RTSP/1.0
- 'Host: example.com'
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=8 span[method]="ANNOUNCE"
- off=8 method complete
- off=9 len=18 span[url]="/music/sweet/music"
- off=28 url complete
- off=28 len=4 span[protocol]="RTSP"
- off=32 protocol complete
- off=33 len=3 span[version]="1.0"
- off=36 version complete
- off=38 len=4 span[header_field]="Host"
- off=43 header_field complete
- off=44 len=11 span[header_value]="example.com"
- off=57 header_value complete
- off=59 headers complete method=36 v=1/0 flags=0 content_length=0
- off=59 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
