sark-http 0.26.3

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 sark_http::h1::head::response::Coding;

pub const CASES: [(&[u8], Coding); 4] = [
    (
        b"HTTP/1.1 200 OK\r\nContent-Encoding: GZip\r\n\r\n",
        Coding::Gzip,
    ),
    (
        b"HTTP/1.1 200 OK\r\nContent-Encoding: gzip\r\nContent-Encoding: gzip\r\n\r\n",
        Coding::Unsupported,
    ),
    (
        b"HTTP/1.1 200 OK\r\nContent-Encoding: gzip, br\r\n\r\n",
        Coding::Unsupported,
    ),
    (b"HTTP/1.1 200 OK\r\n\r\n", Coding::None),
];