http_msgsign_draft/
digest.rs

1mod request;
2
3pub use http_content_digest::{BodyDigest, ContentHasher, DigestHash, errors::DigestError};
4
5pub mod header;
6
7pub trait Digest {
8    type Error;
9    type Content;
10    fn digest<H: ContentHasher>(
11        self,
12    ) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
13    where
14        Self: Sized;
15    fn verify_digest<H: ContentHasher>(
16        self,
17    ) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
18    where
19        Self: Sized;
20}