serde_header

Strongly typed HTTP Header library for Rust, built upon serde

Quick start

```rust use serdeheader::fromhttpheadermap;

[derive(Deserialize, Debug)]

struct Example { contentlength: i64, contenttype: String, }

// let mut h = http::header::HeaderMap::new(); // h.insert("contentlength", "100".parse().unwrap()); // h.insert("contenttype", "application/json".parse().unwrap());

let t: Example = fromhttpheader_map(&h).unwrap();

println!("{:?}", &t) ```