File: headers.rs

package info (click to toggle)
rust-http-types 2.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,020 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 272 bytes parent folder | download
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");
// }