kawa 0.7.1

Agnostic representation of HTTP/1.1 and HTTP/2.0 for parsing, generating and translating HTTP messages, with zero-copy, made for Sōzu.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod buffer;
pub mod debug;
pub mod repr;
pub mod vecdeque;

pub use buffer::{AsBuffer, Buffer};
pub use debug::debug_kawa;
pub use repr::{
    Block, BodySize, Chunk, ChunkHeader, Flags, Kawa, Kind, OutBlock, Pair, ParsingErrorKind,
    ParsingPhase, ParsingPhaseMarker, StatusLine, Store, Version,
};
pub use vecdeque::VecDeque;

pub trait BlockConverter<T: AsBuffer> {
    fn initialize(&mut self, _kawa: &mut Kawa<T>) {}
    fn call(&mut self, block: Block, kawa: &mut Kawa<T>) -> bool;
    fn finalize(&mut self, _kawa: &mut Kawa<T>) {}
}