sark-http 0.28.2

HTTP wire types, semantics, codecs, and ownership invariants for Sark
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use o3::buffer::{resident, segments, segments::assembly};

use crate::payload::owned::Segments;

pub(super) enum State<'d> {
    Input(Segments<'d>),
    Copying(segments::Flatten<resident::Shared<'d>>),
}

/// Rejected input preserves both the body and the unaccepted segment.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Error {
    Finished,
    Assembly(assembly::Error),
}