http-serde-ext 1.0.2

serde support for http crate types Request, Response, Uri, StatusCode, HeaderMap, Method, in Option or other collections
Documentation
1
2
3
4
5
6
7
8
9
type Type = http::HeaderName;
const EXPECT_MESSAGE: &str = "a header name";

serialize_str!(Type);
create_visitor!(Visitor, Type, EXPECT_MESSAGE, (visit_str, &str));
deserialize_str!(Visitor, Type);

derive_extension_types!(super::Type);
derive_hash_types!(super::Type);