path: tests/fixtures/llhttp/response/on-header-field-complete.yml
name: On_header_field_complete
checked: true
source:
  path: test/response/pausing.md
  line: 116
meta:
  pause: on_header_field_complete
  type: response
input:
- HTTP/1.1 200 OK
- 'Content-Length: 3'
- ''
- abc
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=17 len=14 span[header_field]="Content-Length"
- off=32 header_field complete
- off=32 pause
- off=33 len=1 span[header_value]="3"
- off=36 header_value complete
- off=38 headers complete status=200 v=1/1 flags=20 content_length=3
- off=38 len=3 span[body]="abc"
- off=41 message complete
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: 17
  type: header_name
  payload: Content-Length
- offset: 33
  type: header_value
  payload: '3'
- offset: 38
  type: headers
  payload:
    method: null
    status: 200
    url: null
    protocol: HTTP
    version: '1.1'
    body: 3
- offset: 38
  type: data
  payload: abc
- offset: 41
  type: body
  payload: null
- offset: 41
  type: complete
  payload: null
