pub enum Http2ParseError {
Show 14 variants
Incomplete {
required: usize,
available: usize,
},
ClientPrefaceMismatch {
offset: usize,
expected: u8,
actual: u8,
},
PayloadTooLarge {
maximum: usize,
actual: usize,
},
WrongFrameType {
expected: Http2FrameType,
actual: Http2FrameType,
},
ZeroStreamId,
ExpectedZeroStreamId,
FrameSizeMismatch {
expected: usize,
actual: usize,
},
ZeroWindowIncrement,
SettingsPayloadLength {
actual: usize,
},
SettingsAckPayload {
actual: usize,
},
InvalidSettingValue {
id: Http2SettingId,
value: u32,
},
ZeroPromisedStreamId,
InvalidPadding {
padding_length: u8,
payload_length: usize,
},
MalformedPayload {
required: usize,
available: usize,
},
}Expand description
Failure to validate a raw HTTP/2 wire layout.
Variants§
Incomplete
Fewer bytes than a fixed prefix or declared frame payload were supplied.
ClientPrefaceMismatch
A byte differs from the required client-preface byte.
Fields
PayloadTooLarge
A declared frame payload exceeds the caller-provided maximum.
WrongFrameType
A typed frame view was requested for a different raw frame type.
ZeroStreamId
A frame that requires a stream has a zero 31-bit stream identifier.
ExpectedZeroStreamId
A frame that requires the connection stream has a nonzero 31-bit stream identifier.
FrameSizeMismatch
A fixed-layout frame has an unexpected payload length.
ZeroWindowIncrement
A WINDOW_UPDATE frame has a zero 31-bit increment.
SettingsPayloadLength
A SETTINGS payload does not contain a whole number of six-byte parameters.
SettingsAckPayload
A SETTINGS frame with ACK set has a nonempty payload.
InvalidSettingValue
A SETTINGS parameter has an intrinsically invalid value.
ZeroPromisedStreamId
A PUSH_PROMISE frame has a zero 31-bit promised stream identifier.
InvalidPadding
A PADDED frame has no pad-length byte or declares too much padding.
Fields
MalformedPayload
A required intrinsic payload section is truncated.