Crate headers_content_md5
source ·Expand description
Provides the ContentMd5
typed header.
Example
use headers::Header;
use http::HeaderValue;
use headers_content_md5::ContentMd5;
let value = HeaderValue::from_static("Q2hlY2sgSW50ZWdyaXR5IQ==");
let md5 = ContentMd5::decode(&mut [&value].into_iter()).unwrap();
assert_eq!(md5.0, "Check Integrity!".as_bytes())
Structs
Content-MD5
header, defined in RFC1864