Enum webparse::http::http2::Http2Error
source · pub enum Http2Error {
Show 16 variants
Decoder(DecoderError),
Huffman(HuffmanDecoderError),
Short,
BadFlag(u8),
BadKind(u8),
TooMuchPadding(u8),
PayloadLengthTooShort,
PartialSettingLength,
InvalidPayloadLength,
InvalidStreamId,
InvalidSettingValue,
BadFrameSize,
InvalidWindowUpdateValue,
InvalidDependencyId,
MalformedMessage,
InvalidRequesetUrl,
}
Variants§
Decoder(DecoderError)
Huffman(HuffmanDecoderError)
Short
A full frame header was not passed.
BadFlag(u8)
An unsupported value was set for the flag value.
BadKind(u8)
An unsupported value was set for the frame kind.
TooMuchPadding(u8)
The padding length was larger than the frame-header-specified length of the payload.
PayloadLengthTooShort
The payload length specified by the frame header was shorter than necessary for the parser settings specified and the frame type.
This happens if, for instance, the priority flag is set and the header length is shorter than a stream dependency.
PayloadLengthTooShort
should be treated as a protocol error.
PartialSettingLength
The payload length specified by the frame header of a settings frame was not a round multiple of the size of a single setting.
InvalidPayloadLength
The payload length specified by the frame header was not the value necessary for the specific frame type.
InvalidStreamId
无效的streamId, 比如setting只能以0的id来传送
InvalidSettingValue
无效的设置值, 比如enable_push只能取0和1
BadFrameSize
无效的frame大小
InvalidWindowUpdateValue
无效的窗口大小文件
InvalidDependencyId
无效的依赖StreamId
MalformedMessage
无效的报文信息
InvalidRequesetUrl
请求的头信息不全