kawa 0.7.0

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
mod protocol;
mod storage;

pub use protocol::{h1, h2};
pub use storage::*;

pub struct SliceBuffer<'a>(pub &'a mut [u8]);

impl crate::AsBuffer for SliceBuffer<'_> {
    fn as_buffer(&self) -> &[u8] {
        self.0
    }
    fn as_mut_buffer(&mut self) -> &mut [u8] {
        self.0
    }
}