sark-http 0.26.2

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
use std::mem;

use sark_http::payload;

use crate::payload::fixed;

#[test]
fn is_one_slice() {
    assert_eq!(
        mem::size_of::<fixed::Body>(),
        mem::size_of::<&'static [u8]>()
    );
    assert_eq!(fixed::Body::new(b"static").as_slice(), b"static");
}