http-msgsign-draft 0.4.1

Add functionality for draft-cavage-http-signatures-12 to http.
Documentation
mod request;
mod response;

pub use http_content_digest::{body, BodyDigest, ContentHasher, DigestHash, errors::DigestError};

pub mod header;

pub trait Digest {
    type Error;
    type Content;
    fn digest<H: ContentHasher>(
        self,
    ) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
    where
        Self: Sized;
    fn verify_digest<H: ContentHasher>(
        self,
    ) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
    where
        Self: Sized;
}