Type Definition actix_hash::BodyMd5
source · [−]This is supported on crate feature
md5 only.Expand description
Wraps an extractor and calculates a MD5 body checksum hash alongside.
Example
use actix_hash::BodyMd5;
async fn handler(body: BodyMd5<String>) -> String {
assert_eq!(body.hash().len(), 16);
body.into_parts().inner
}