The head of a message, filled in when the HEAD event is returned and valid until the next message's head begins.
Fields
- method: Method
- Requests
- method_text: string
- target: string
- target_form: Target_Form
- status: int
- Responses
- reason: string
- informational: bool
- 1xx other than 101: a final response follows
- version: Version
- headers: [] Header_Field
- body: Body_Kind
- How the body is delimited and what the connection should do afterwards.
- content_length: s64
- for .LENGTH; also set for a HEAD response or 304 that names one (else -1)
- keep_alive: bool
- the connection may carry another message afterwards
- expect_continue: bool
- a request with a body that waits for
100 Continue(RFC 9110 10.1.1) - upgrade: bool
- Connection: upgrade with an Upgrade header