sark-http 0.22.0

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
16
17
use table::delta::buffer;

use crate::payload::compress::dynamic::{mode, table};

pub struct Borrow<'a> {
    pub(super) table: &'a mut table::Table<mode::Direct>,
    pub(super) pending: &'a mut buffer::Storage,
}

impl<'a> Borrow<'a> {
    pub fn new(
        table: &'a mut table::Table<mode::Direct>,
        pending: &'a mut buffer::Storage,
    ) -> Self {
        Self { table, pending }
    }
}