path: tests/fixtures/llhttp/response/it-should-be-safe-to-finish-with-cb-after-empty-response.yml
name: It Should Be Safe To Finish With Cb After Empty Response
checked: true
source:
  path: test/response/finish.md
  line: 6
meta:
  type: response-finish
input:
- HTTP/1.1 200 OK
- ''
- ''
llhttp:
- off=0 message begin
- off=0 len=4 span[protocol]="HTTP"
- off=4 protocol complete
- off=5 len=3 span[version]="1.1"
- off=8 version complete
- off=13 len=2 span[status]="OK"
- off=17 status complete
- off=19 headers complete status=200 v=1/1 flags=0 content_length=0
- off=NULL finish=1
output:
- offset: 0
  type: response
  payload: null
- offset: 0
  type: begin
  payload: null
- offset: 0
  type: protocol
  payload: HTTP
- offset: 5
  type: version
  payload: '1.1'
- offset: 9
  type: status
  payload: '200'
- offset: 13
  type: reason
  payload: OK
- offset: 19
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: null
