tosic-http 0.0.3

A basic but powerful HTTP server implementation based on `actix-web`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum BodySize {
    None,
    Sized(u64),
}

impl BodySize {
    pub const ZERO: Self = Self::Sized(0);

    pub fn is_eof(&self) -> bool {
        matches!(self, BodySize::None | BodySize::Sized(0))
    }
}