[go: up one dir, main page]

http-types 2.11.0

Common types for HTTP operations.
Documentation
1
2
3
4
5
6
7
8
// use http_types::{Response, StatusCode};

// #[test]
// fn headers_cmp() {
//     let mut res = Response::new(StatusCode::Ok);
//     res.insert_header("content-type", "application/json");
//     assert_eq!(res.header("content-type").unwrap(), "application/json");
// }