net_wire/http3/enums/message.rs
1//! Shared HTTP/3 message vocabulary.
2
3/// The intended HTTP/3 role of a decoded HEADERS field section.
4#[derive(Clone, Copy, Debug, Eq, PartialEq)]
5pub enum Http3HeadersContext {
6 /// A request field section, with the negotiated Extended CONNECT capability.
7 Request {
8 /// Whether the peer enabled Extended CONNECT.
9 extended_connect_enabled: bool,
10 },
11 /// A response field section.
12 Response,
13 /// A trailer field section.
14 Trailers,
15}
16
17/// The semantic role assigned to a QPACK-decoded HTTP/3 header section.
18#[derive(Clone, Copy, Debug, Eq, PartialEq)]
19pub enum Http3HeadersKind {
20 /// The initial header section of a request.
21 Request,
22 /// A non-final response header section.
23 InformationalResponse,
24 /// The final response header section.
25 FinalResponse,
26 /// A trailing header section following message content.
27 Trailers,
28}