diff --git a/http-signature-normalization-actix/Cargo.toml b/http-signature-normalization-actix/Cargo.toml index e568cd8..20e7ddf 100644 --- a/http-signature-normalization-actix/Cargo.toml +++ b/http-signature-normalization-actix/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "http-signature-normalization-actix" description = "An HTTP Signatures library that leaves the signing to you" -version = "0.4.0-alpha.3" +version = "0.4.0" authors = ["asonix "] license-file = "LICENSE" readme = "README.md" @@ -25,8 +25,8 @@ name = "client" required-features = ["sha-2"] [dependencies] -actix-web = "3.0.0-alpha.3" -actix-http = "2.0.0-alpha.4" +actix-web = { version = "3.0.1", default-features = false } +awc = { version = "2.0.0", default-features = false } base64 = { version = "0.12", optional = true } bytes = "0.5.4" chrono = "0.4.6" diff --git a/http-signature-normalization-actix/src/digest/mod.rs b/http-signature-normalization-actix/src/digest/mod.rs index 8206a3b..09737a4 100644 --- a/http-signature-normalization-actix/src/digest/mod.rs +++ b/http-signature-normalization-actix/src/digest/mod.rs @@ -3,13 +3,7 @@ //! Digest headers are commonly used in conjunction with HTTP Signatures to verify the whole //! request when request bodies are present -use actix_http::encoding::Decoder; -use actix_web::{ - client::{ClientRequest, ClientResponse, SendRequestError}, - dev::Payload, - error::BlockingError, - http::header::InvalidHeaderValue, -}; +use actix_web::{client::ClientRequest, error::BlockingError, http::header::InvalidHeaderValue}; use std::{fmt::Display, future::Future, pin::Pin}; use crate::{Config, PrepareSignError, Sign}; @@ -121,9 +115,7 @@ where /// /// This is analogous to `ClientRequest::send_body` and uses the body provided when producing /// the digest - pub fn send( - self, - ) -> impl Future>, SendRequestError>> { + pub fn send(self) -> awc::SendClientRequest { self.req.send_body(self.body.as_ref().to_vec()) } }