Type Definition actix_hash::BodyBlake2b
source · [−]pub type BodyBlake2b<T> = BodyHash<T, Blake2b512>;Available on crate feature
blake2 only.Expand description
Wraps an extractor and calculates a Blake2b body checksum hash alongside.
Example
use actix_hash::BodyBlake2b;
async fn handler(body: BodyBlake2b<String>) -> String {
assert_eq!(body.hash().len(), 64);
body.into_parts().inner
}