pub struct Informational<'a> {
pub id: ConnectionId,
pub status: StatusCode,
pub headers: &'a HeaderMap,
}Expand description
A 1xx that arrived before the response.
§Why there is no version here, when Head has one
A 1xx travels on a connection, and the connection’s protocol was
already reported by the Connected or Reused that opened this
exchange — both of which carry a plain Version rather than an
Option, because only a transport that owns a connection emits either
and owning one means having negotiated its protocol. Repeating it here
would be a third place to be wrong about the same fact.
Head::version is an Option for the opposite reason: the two
backends that own no connection emit Head and nothing else, so for
them there is no Connected to have carried it. Neither of them can
emit this event at all.
Fields§
§id: ConnectionId§status: StatusCode1xx. Which one is the whole of what distinguishes a 100 from a
103, so it is not narrowed to an enum: a status this crate has
never heard of is still a status the server sent.
headers: &'a HeaderMap