sark-core 0.8.2

the L7 layer for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::out::Out;

pub(in crate::http::response) trait HeaderSection {
    fn header_len(&self) -> usize;
    fn write_headers(&self, out: &mut [u8], off: &mut usize);
}

impl HeaderSection for [u8] {
    fn header_len(&self) -> usize {
        self.len()
    }
    fn write_headers(&self, out: &mut [u8], off: &mut usize) {
        Out::put(out, off, self);
    }
}