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