sark-h2 0.24.0

Fiber-free HTTP/2 protocol primitives and manifold server for sark
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core::ops;

use sark_http::field::metadata::section::rules;

pub(crate) struct Fragment {
    pub(crate) start: usize,
    pub(crate) len: usize,
    pub(crate) total: usize,
    pub(crate) kind: rules::Kind,
}

impl Fragment {
    pub(super) const fn range(&self) -> ops::Range<usize> {
        self.start..self.start + self.len
    }
}