xitca-http 0.9.2

http library for xitca
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::{frame::reason::Reason, hpack::DecoderError};

#[derive(Debug)]
pub enum Error {
    MalformedMessage,
    GoAway(Reason),
    Hpack(DecoderError),
    /// Stream-level error: send RST_STREAM(reason) to the peer. Does not close
    /// the connection.
    Reset(Reason),
}

impl From<DecoderError> for Error {
    fn from(e: DecoderError) -> Self {
        Self::Hpack(e)
    }
}