path: tests/fixtures/llhttp/request/space-after-start-line-must-still-fail.yml
name: Space After Start Line Must Still Fail
checked: true
source:
  path: test/request/lenient-header-value-relaxed.md
  line: 136
meta:
  type: request-lenient-header-value-relaxed
input:
- GET /url HTTP/1.1
- ' Header1: value'
- ''
llhttp:
- off=0 message begin
- off=0 len=3 span[method]="GET"
- off=3 method complete
- off=4 len=4 span[url]="/url"
- off=9 url complete
- off=9 len=4 span[protocol]="HTTP"
- off=13 protocol complete
- off=14 len=3 span[version]="1.1"
- off=17 version complete
- off=20 error code=30 reason="Unexpected space after start line"
output:
- offset: 0
  type: request
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: method
  payload: GET
- offset: 4
  type: url
  payload: /url
- offset: 9
  type: protocol
  payload: HTTP
- offset: 14
  type: version
  payload: '1.1'
- offset: 19
  type: error
  payload:
    code: UNEXPECTED_CHARACTER
    description: Invalid header field name character
