base-http 0.2.0

Runtime-independent HTTP semantics and bodies for Base
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Released under the MIT License.
// Copyright, 2026, by Samuel Williams.

use base_http::Version;

#[test]
fn display_writes_the_protocol_version() {
    assert_eq!(Version::Http10.to_string(), "HTTP/1.0");
    assert_eq!(Version::Http11.to_string(), "HTTP/1.1");
    assert_eq!(Version::Http2.to_string(), "HTTP/2");
    assert_eq!(Version::Http3.to_string(), "HTTP/3");
}