digest-headers 0.2.1

A simple library to hash a request's body in the headers
/* This file is part of Digest Headers
 *
 * Digest Headers is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Digest Headers is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Digest Headers  If not, see <http://www.gnu.org/licenses/>.
 */

//! The `prelude` module provides useful traits for working with Digest headers.

#[cfg(feature = "use_hyper")]
pub use crate::use_hyper::{
    VerifyDigest as HyperVerifyDigest, VerifyError as HyperVerifyError,
    WithDigest as HyperWithDigest,
};

#[cfg(feature = "use_actix_web")]
pub use crate::use_actix_web::{
    VerifiedDigest as ActixWebVerifiedDigest, VerifyDigest as ActixWebVerifyDigest,
    VerifyError as ActixWebVerifyError, WithDigest as ActixWebWithDigest,
};

#[cfg(feature = "use_reqwest")]
pub use crate::use_reqwest::{
    VerifyDigest as ReqwestVerifyDigest, VerifyError as ReqwestVerifyError,
    WithDigest as ReqwestWithDigest,
};

#[cfg(feature = "use_rocket")]
pub use crate::use_rocket::{ContentLengthHeader, DigestHeader, Error as RocketError, WithDigest};