Struct actix_identity::IdentityService [−][src]
pub struct IdentityService<T> { /* fields omitted */ }
Expand description
Request identity middleware
+Struct actix_identity::IdentityService [−][src]
pub struct IdentityService<T> { /* fields omitted */ }
Expand description
Request identity middleware
use actix_web::App;
use actix_identity::{CookieIdentityPolicy, IdentityService};
@@ -12,13 +12,13 @@
let app = App::new()
// wrap policy into identity middleware
.wrap(IdentityService::new(policy));
Implementations
Trait Implementations
impl<S, T, B> Transform<S, ServiceRequest> for IdentityService<T> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
T: IdentityPolicy,
B: MessageBody + 'static,
B::Error: StdError,
impl<S, T, B> Transform<S, ServiceRequest> for IdentityService<T> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
T: IdentityPolicy,
B: MessageBody + 'static,
B::Error: StdError,
type Response = ServiceResponse
type Response = ServiceResponse
Responses produced by the service.
+Implementations
Trait Implementations
impl<S, T, B> Transform<S, ServiceRequest> for IdentityService<T> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
T: IdentityPolicy,
B: MessageBody + 'static,
B::Error: StdError,
impl<S, T, B> Transform<S, ServiceRequest> for IdentityService<T> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
T: IdentityPolicy,
B: MessageBody + 'static,
B::Error: StdError,
type Response = ServiceResponse
type Response = ServiceResponse
Responses produced by the service.
type Error = Error
type Error = Error
Errors produced by the service.
type Transform = IdentityServiceMiddleware<S, T>
type Transform = IdentityServiceMiddleware<S, T>
The TransformService
value created by this factory
type Future = Ready<Result<Self::Transform, Self::InitError>>
type Future = Ready<Result<Self::Transform, Self::InitError>>
The future response value.
-Creates and returns a new Transform component, asynchronously
+Creates and returns a new Transform component, asynchronously
Auto Trait Implementations
impl<T> RefUnwindSafe for IdentityService<T> where
T: RefUnwindSafe,
impl<T> !Send for IdentityService<T>
impl<T> !Sync for IdentityService<T>
impl<T> Unpin for IdentityService<T>
impl<T> UnwindSafe for IdentityService<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/actix_session/struct.CookieSession.html b/actix_session/struct.CookieSession.html index 990bdae87..7adfba64c 100644 --- a/actix_session/struct.CookieSession.html +++ b/actix_session/struct.CookieSession.html @@ -1,5 +1,5 @@Struct actix_session::CookieSession [−][src]
pub struct CookieSession(_);
Expand description
Use cookies for session storage.
+Struct actix_session::CookieSession [−][src]
pub struct CookieSession(_);
Expand description
Use cookies for session storage.
CookieSession
creates sessions which are limited to storing
fewer than 4000 bytes of data (as the payload must fit into a single
cookie). An Internal Server Error is generated if the session contains more
@@ -29,33 +29,33 @@ cause troubles when reading cookie, if they are not properly percent encoded.
Implementations
Implementations
Construct new signed CookieSession
instance.
Panics if key length is less than 32 bytes.
-Construct new private CookieSession
instance.
Panics if key length is less than 32 bytes.
-Sets the path
field in the session cookie being built.
Sets the name
field in the session cookie being built.
Sets the domain
field in the session cookie being built.
When true, prevents adding session cookies to responses until +
Sets the path
field in the session cookie being built.
Sets the name
field in the session cookie being built.
Sets the domain
field in the session cookie being built.
When true, prevents adding session cookies to responses until
the session contains data. Default is false
.
Useful when trying to comply with laws that require consent for setting cookies.
-Sets the secure
field in the session cookie being built.
Sets the secure
field in the session cookie being built.
If the secure
field is set, a cookie will only be transmitted when the
connection is secure - i.e. https
Sets the http_only
field in the session cookie being built.
Sets the same_site
field in the session cookie being built.
Sets the max-age
field in the session cookie being built.
Sets the max-age
field in the session cookie being built.
Sets the expires
field in the session cookie being built.
Sets the expires
field in the session cookie being built.
Trait Implementations
Returns a copy of the value. Read more
+Sets the http_only
field in the session cookie being built.
Sets the same_site
field in the session cookie being built.
Sets the max-age
field in the session cookie being built.
Sets the max-age
field in the session cookie being built.
Sets the expires
field in the session cookie being built.
Sets the expires
field in the session cookie being built.
Trait Implementations
impl<S, B> Transform<S, ServiceRequest> for CookieSession where
S: Service<ServiceRequest, Response = ServiceResponse<B>>,
S::Future: 'static,
S::Error: 'static,
B: MessageBody + 'static,
B::Error: StdError,
impl<S, B> Transform<S, ServiceRequest> for CookieSession where
S: Service<ServiceRequest, Response = ServiceResponse<B>>,
S::Future: 'static,
S::Error: 'static,
B: MessageBody + 'static,
B::Error: StdError,
type Response = ServiceResponse
type Response = ServiceResponse
Responses produced by the service.
+impl<S, B> Transform<S, ServiceRequest> for CookieSession where
S: Service<ServiceRequest, Response = ServiceResponse<B>>,
S::Future: 'static,
S::Error: 'static,
B: MessageBody + 'static,
B::Error: StdError,
impl<S, B> Transform<S, ServiceRequest> for CookieSession where
S: Service<ServiceRequest, Response = ServiceResponse<B>>,
S::Future: 'static,
S::Error: 'static,
B: MessageBody + 'static,
B::Error: StdError,
type Response = ServiceResponse
type Response = ServiceResponse
Responses produced by the service.
type Error = S::Error
type Error = S::Error
Errors produced by the service.
type Transform = CookieSessionMiddleware<S>
type Transform = CookieSessionMiddleware<S>
The TransformService
value created by this factory
Creates and returns a new Transform component, asynchronously
+Creates and returns a new Transform component, asynchronously
Auto Trait Implementations
impl RefUnwindSafe for CookieSession
impl !Send for CookieSession
impl !Sync for CookieSession
impl Unpin for CookieSession
impl UnwindSafe for CookieSession
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/actix_web_httpauth/extractors/bearer/index.html b/actix_web_httpauth/extractors/bearer/index.html index 134b6c9e2..9dfe2da0e 100644 --- a/actix_web_httpauth/extractors/bearer/index.html +++ b/actix_web_httpauth/extractors/bearer/index.html @@ -1,5 +1,5 @@Module actix_web_httpauth::extractors::bearer [−][src]
Expand description
Extractor for the “Bearer” HTTP Authentication Scheme
+Module actix_web_httpauth::extractors::bearer [−][src]
Expand description
Extractor for the “Bearer” HTTP Authentication Scheme
Structs
Extractor for HTTP Bearer auth
BearerAuth extractor configuration.
diff --git a/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html b/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html index 3764da656..d67fc747d 100644 --- a/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html +++ b/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html @@ -1,5 +1,5 @@Struct actix_web_httpauth::extractors::bearer::BearerAuth [−][src]
pub struct BearerAuth(_);
Expand description
Extractor for HTTP Bearer auth
+Struct actix_web_httpauth::extractors::bearer::BearerAuth [−][src]
pub struct BearerAuth(_);
Expand description
Extractor for HTTP Bearer auth
Example
use actix_web_httpauth::extractors::bearer::BearerAuth;
@@ -26,16 +26,16 @@ response header.
)
.service(web::resource("/index.html").route(web::get().to(index)));
}
Implementations
Trait Implementations
Future that resolves into extracted credentials type.
+Implementations
Trait Implementations
type Error = AuthenticationError<Bearer>
type Error = AuthenticationError<Bearer>
The associated error which can be returned.
-Parse the authentication credentials from the actix’ ServiceRequest
.
Returns a copy of the value. Read more
+Parse the authentication credentials from the actix’ ServiceRequest
.
type Error = AuthenticationError<Bearer>
type Error = AuthenticationError<Bearer>
The associated error which can be returned.
-Create a Self from request parts asynchronously.
+Create a Self from request parts asynchronously.
Auto Trait Implementations
impl RefUnwindSafe for BearerAuth
impl Send for BearerAuth
impl Sync for BearerAuth
impl Unpin for BearerAuth
impl UnwindSafe for BearerAuth
Blanket Implementations
Immutably borrows from an owned value. Read more
diff --git a/actix_web_httpauth/extractors/bearer/struct.Config.html b/actix_web_httpauth/extractors/bearer/struct.Config.html index 8e1c6b25d..fde2bd450 100644 --- a/actix_web_httpauth/extractors/bearer/struct.Config.html +++ b/actix_web_httpauth/extractors/bearer/struct.Config.html @@ -1,19 +1,19 @@Struct actix_web_httpauth::extractors::bearer::Config [−][src]
pub struct Config(_);
Expand description
BearerAuth extractor configuration.
-Implementations
Set challenge scope
attribute.
Struct actix_web_httpauth::extractors::bearer::Config [−][src]
pub struct Config(_);
Expand description
BearerAuth extractor configuration.
+Implementations
Set challenge scope
attribute.
The "scope"
attribute is a space-delimited list of case-sensitive
scope values indicating the required scope of the access token for
accessing the requested resource.
Set challenge realm
attribute.
Trait Implementations
Convert the config instance into a HTTP challenge.
-Trait Implementations
Convert the config instance into a HTTP challenge.
+Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/actix_web_httpauth/extractors/struct.AuthenticationError.html b/actix_web_httpauth/extractors/struct.AuthenticationError.html index 7902582ed..b9918a5e5 100644 --- a/actix_web_httpauth/extractors/struct.AuthenticationError.html +++ b/actix_web_httpauth/extractors/struct.AuthenticationError.html @@ -2,12 +2,12 @@Struct actix_web_httpauth::extractors::AuthenticationError [−][src]
pub struct AuthenticationError<C: Challenge> { /* fields omitted */ }
Expand description
Authentication error returned by authentication extractors.
Different extractors may extend AuthenticationError
implementation
in order to provide access to inner challenge fields.
Implementations
Extended error customization for HTTP Bearer
auth.
Attach Error
to the current Authentication error.
Implementations
Extended error customization for HTTP Bearer
auth.
Attach Error
to the current Authentication error.
Error status code will be changed to the one provided by the kind
Error.
Attach error description to the current Authentication error.
-Attach error URI to the current Authentication error.
+Attach error description to the current Authentication error.
+Attach error URI to the current Authentication error.
It is up to implementor to provide properly formed absolute URI.
Creates new authentication error from the provided challenge
.
By default returned error will resolve into the HTTP 401
status code.
Associated Types
Required methods
fn from_service_request(req: &ServiceRequest) -> Self::Future
fn from_service_request(req: &ServiceRequest) -> Self::Future
Parse the authentication credentials from the actix’ ServiceRequest
.
Implementations on Foreign Types
Implementors
Implementations on Foreign Types
Implementors
Associated Types
Required methods
fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Convert the config instance into a HTTP challenge.
-Implementors
Implementors
Trait Implementations
Trait Implementations
Formats the value using the given formatter. Read more
diff --git a/actix_web_httpauth/middleware/index.html b/actix_web_httpauth/middleware/index.html index 62a0ec8d5..0443deae6 100644 --- a/actix_web_httpauth/middleware/index.html +++ b/actix_web_httpauth/middleware/index.html @@ -1,5 +1,5 @@Module actix_web_httpauth::middleware [−][src]
Expand description
HTTP Authentication middleware.
+Module actix_web_httpauth::middleware [−][src]
Expand description
HTTP Authentication middleware.
Structs
Middleware for checking HTTP authentication.
Struct actix_web_httpauth::middleware::HttpAuthentication [−][src]
pub struct HttpAuthentication<T, F> where
T: AuthExtractor, { /* fields omitted */ }
Expand description
Middleware for checking HTTP authentication.
+Struct actix_web_httpauth::middleware::HttpAuthentication [−][src]
pub struct HttpAuthentication<T, F> where
T: AuthExtractor, { /* fields omitted */ }
Expand description
Middleware for checking HTTP authentication.
If there is no Authorization
header in the request, this middleware returns an error
immediately, without calling the F
callback.
Otherwise, it will pass both the request and the parsed credentials into it. In case of
successful validation F
callback is required to return the ServiceRequest
back.
Implementations
impl<T, F, O> HttpAuthentication<T, F> where
T: AuthExtractor,
F: Fn(ServiceRequest, T) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
impl<T, F, O> HttpAuthentication<T, F> where
T: AuthExtractor,
F: Fn(ServiceRequest, T) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
Construct HttpAuthentication
middleware with the provided auth extractor T
and
+
Implementations
impl<T, F, O> HttpAuthentication<T, F> where
T: AuthExtractor,
F: Fn(ServiceRequest, T) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
impl<T, F, O> HttpAuthentication<T, F> where
T: AuthExtractor,
F: Fn(ServiceRequest, T) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
Construct HttpAuthentication
middleware with the provided auth extractor T
and
validation callback F
.
Construct HttpAuthentication
middleware for the HTTP “Basic” authentication scheme.
Example
// In this example validator returns immediately, but since it is required to return
// anything that implements `IntoFuture` trait, it can be extended to query database or to
@@ -20,7 +20,7 @@ validation callback F
.
}
let middleware = HttpAuthentication::basic(validator);
impl<F, O> HttpAuthentication<BearerAuth, F> where
F: Fn(ServiceRequest, BearerAuth) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
impl<F, O> HttpAuthentication<BearerAuth, F> where
F: Fn(ServiceRequest, BearerAuth) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
impl<F, O> HttpAuthentication<BearerAuth, F> where
F: Fn(ServiceRequest, BearerAuth) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
impl<F, O> HttpAuthentication<BearerAuth, F> where
F: Fn(ServiceRequest, BearerAuth) -> O,
O: Future<Output = Result<ServiceRequest, Error>>,
Construct HttpAuthentication
middleware for the HTTP “Bearer” authentication scheme.
Example
async fn validator(req: ServiceRequest, credentials: BearerAuth) -> Result<ServiceRequest, Error> {
if credentials.token() == "mF_9.B5f-4.1JqM" {
@@ -36,15 +36,15 @@ validation callback F
.
}
let middleware = HttpAuthentication::bearer(validator);
Trait Implementations
Returns a copy of the value. Read more
+Trait Implementations
impl<S, B, T, F, O> Transform<S, ServiceRequest> for HttpAuthentication<T, F> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
F: Fn(ServiceRequest, T) -> O + 'static,
O: Future<Output = Result<ServiceRequest, Error>> + 'static,
T: AuthExtractor + 'static,
B: MessageBody + 'static,
B::Error: StdError,
impl<S, B, T, F, O> Transform<S, ServiceRequest> for HttpAuthentication<T, F> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
F: Fn(ServiceRequest, T) -> O + 'static,
O: Future<Output = Result<ServiceRequest, Error>> + 'static,
T: AuthExtractor + 'static,
B: MessageBody + 'static,
B::Error: StdError,
type Response = ServiceResponse
type Response = ServiceResponse
Responses produced by the service.
+impl<S, B, T, F, O> Transform<S, ServiceRequest> for HttpAuthentication<T, F> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
F: Fn(ServiceRequest, T) -> O + 'static,
O: Future<Output = Result<ServiceRequest, Error>> + 'static,
T: AuthExtractor + 'static,
B: MessageBody + 'static,
B::Error: StdError,
impl<S, B, T, F, O> Transform<S, ServiceRequest> for HttpAuthentication<T, F> where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
F: Fn(ServiceRequest, T) -> O + 'static,
O: Future<Output = Result<ServiceRequest, Error>> + 'static,
T: AuthExtractor + 'static,
B: MessageBody + 'static,
B::Error: StdError,
type Response = ServiceResponse
type Response = ServiceResponse
Responses produced by the service.
type Error = Error
type Error = Error
Errors produced by the service.
type Transform = AuthenticationMiddleware<S, F, T>
type Transform = AuthenticationMiddleware<S, F, T>
The TransformService
value created by this factory
Creates and returns a new Transform component, asynchronously
+Creates and returns a new Transform component, asynchronously
Auto Trait Implementations
impl<T, F> RefUnwindSafe for HttpAuthentication<T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for HttpAuthentication<T, F> where
F: Send + Sync,
T: Send,
impl<T, F> Sync for HttpAuthentication<T, F> where
F: Send + Sync,
T: Sync,
impl<T, F> Unpin for HttpAuthentication<T, F> where
T: Unpin,
impl<T, F> UnwindSafe for HttpAuthentication<T, F> where
F: RefUnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
diff --git a/src/actix_cors/builder.rs.html b/src/actix_cors/builder.rs.html index fdf4e8fd5..782a73941 100644 --- a/src/actix_cors/builder.rs.html +++ b/src/actix_cors/builder.rs.html @@ -661,6 +661,7 @@ collections::HashSet, convert::TryInto, error::Error as StdError, iter::FromIterator, rc::Rc, }; +use actix_utils::future::{self, Ready}; use actix_web::{ body::MessageBody, dev::{RequestHead, Service, ServiceRequest, ServiceResponse, Transform}, @@ -668,7 +669,6 @@ http::{self, header::HeaderName, Error as HttpError, HeaderValue, Method, Uri}, Either, }; -use futures_util::future::{self, Ready}; use log::error; use once_cell::sync::Lazy; use smallvec::smallvec; diff --git a/src/actix_cors/middleware.rs.html b/src/actix_cors/middleware.rs.html index db2d4750c..73a55b396 100644 --- a/src/actix_cors/middleware.rs.html +++ b/src/actix_cors/middleware.rs.html @@ -239,8 +239,10 @@ 238 239 240 +241use std::{collections::HashSet, convert::TryInto, error::Error as StdError, rc::Rc};
+use actix_utils::future::{ok, Either, Ready};
use actix_web::{
body::{AnyBody, MessageBody},
dev::{Service, ServiceRequest, ServiceResponse},
@@ -251,7 +253,7 @@
},
HttpResponse,
};
-use futures_util::future::{ok, Either, FutureExt as _, LocalBoxFuture, Ready, TryFutureExt as _};
+use futures_util::future::{FutureExt as _, LocalBoxFuture, TryFutureExt as _};
use log::debug;
use crate::{builder::intersperse_header_values, AllOrSome, Inner};
@@ -396,7 +398,7 @@
if self.inner.preflight && req.method() == Method::OPTIONS {
let inner = Rc::clone(&self.inner);
let res = Self::handle_preflight(&inner, req);
- Either::Left(ok(res))
+ Either::left(ok(res))
} else {
let origin = req.headers().get(header::ORIGIN).cloned();
@@ -404,7 +406,7 @@
// Only check requests with a origin header.
if let Err(err) = self.inner.validate_origin(req.head()) {
debug!("origin validation failed; inner service is not called");
- return Either::Left(ok(req.error_response(err)));
+ return Either::left(ok(req.error_response(err)));
}
}
@@ -424,7 +426,7 @@
.map_ok(|res| res.map_body(|_, body| AnyBody::new_boxed(body)))
.boxed_local();
- Either::Right(res)
+ Either::right(res)
}
}
}
diff --git a/src/actix_identity/cookie.rs.html b/src/actix_identity/cookie.rs.html
index 01edb9132..66f9841d4 100644
--- a/src/actix_identity/cookie.rs.html
+++ b/src/actix_identity/cookie.rs.html
@@ -823,7 +823,7 @@
822
use std::{rc::Rc, time::SystemTime};
-use futures_util::future::{ready, Ready};
+use actix_utils::future::{ready, Ready};
use serde::{Deserialize, Serialize};
use time::Duration;
diff --git a/src/actix_identity/identity.rs.html b/src/actix_identity/identity.rs.html
index 3de0bf399..d00abd783 100644
--- a/src/actix_identity/identity.rs.html
+++ b/src/actix_identity/identity.rs.html
@@ -103,7 +103,7 @@
dev::{Extensions, Payload},
Error, FromRequest, HttpRequest,
};
-use futures_util::future::{ready, Ready};
+use actix_utils::future::{ready, Ready};
pub(crate) struct IdentityItem {
pub(crate) id: Option<String>,
diff --git a/src/actix_identity/middleware.rs.html b/src/actix_identity/middleware.rs.html
index 0ddcceaac..0518ee7e3 100644
--- a/src/actix_identity/middleware.rs.html
+++ b/src/actix_identity/middleware.rs.html
@@ -171,14 +171,17 @@
170
171
172
+173
+174
use std::{error::Error as StdError, rc::Rc};
+use actix_utils::future::{ready, Ready};
use actix_web::{
body::{AnyBody, MessageBody},
dev::{Service, ServiceRequest, ServiceResponse, Transform},
Error, HttpMessage, Result,
};
-use futures_util::future::{ready, FutureExt as _, LocalBoxFuture, Ready, TryFutureExt as _};
+use futures_util::future::{FutureExt as _, LocalBoxFuture, TryFutureExt as _};
use crate::{identity::IdentityItem, IdentityPolicy};
@@ -302,7 +305,8 @@
#[actix_rt::test]
async fn test_borrowed_mut_error() {
- use futures_util::future::{lazy, ok, Ready};
+ use actix_utils::future::{ok, Ready};
+ use futures_util::future::lazy;
struct Ident;
impl IdentityPolicy for Ident {
diff --git a/src/actix_session/cookie.rs.html b/src/actix_session/cookie.rs.html
index 809741e6d..96acbe260 100644
--- a/src/actix_session/cookie.rs.html
+++ b/src/actix_session/cookie.rs.html
@@ -562,10 +562,12 @@
561
562
563
+564
//! Cookie based sessions. See docs for [`CookieSession`].
use std::{collections::HashMap, error::Error as StdError, rc::Rc};
+use actix_utils::future::{ok, Ready};
use actix_web::{
body::{AnyBody, MessageBody},
cookie::{Cookie, CookieJar, Key, SameSite},
@@ -574,7 +576,7 @@
Error, ResponseError,
};
use derive_more::Display;
-use futures_util::future::{ok, FutureExt as _, LocalBoxFuture, Ready};
+use futures_util::future::{FutureExt as _, LocalBoxFuture};
use serde_json::error::Error as JsonError;
use time::{Duration, OffsetDateTime};
diff --git a/src/actix_session/lib.rs.html b/src/actix_session/lib.rs.html
index b584da5d8..8417e7366 100644
--- a/src/actix_session/lib.rs.html
+++ b/src/actix_session/lib.rs.html
@@ -450,11 +450,11 @@
rc::Rc,
};
+use actix_utils::future::{ok, Ready};
use actix_web::{
dev::{Extensions, Payload, RequestHead, ServiceRequest, ServiceResponse},
Error, FromRequest, HttpMessage, HttpRequest,
};
-use futures_util::future::{ok, Ready};
use serde::{de::DeserializeOwned, Serialize};
#[cfg(feature = "cookie-session")]
diff --git a/src/actix_web_httpauth/extractors/basic.rs.html b/src/actix_web_httpauth/extractors/basic.rs.html
index b72fea68d..f4f24ef6c 100644
--- a/src/actix_web_httpauth/extractors/basic.rs.html
+++ b/src/actix_web_httpauth/extractors/basic.rs.html
@@ -151,10 +151,10 @@
use std::borrow::Cow;
+use actix_utils::future::{ready, Ready};
use actix_web::dev::{Payload, ServiceRequest};
use actix_web::http::header::Header;
use actix_web::{FromRequest, HttpRequest};
-use futures_util::future::{ready, Ready};
use super::config::AuthExtractorConfig;
use super::errors::AuthenticationError;
diff --git a/src/actix_web_httpauth/extractors/bearer.rs.html b/src/actix_web_httpauth/extractors/bearer.rs.html
index c2dc1285a..f03defcb3 100644
--- a/src/actix_web_httpauth/extractors/bearer.rs.html
+++ b/src/actix_web_httpauth/extractors/bearer.rs.html
@@ -173,24 +173,20 @@
172
173
174
-175
-176
//! Extractor for the "Bearer" HTTP Authentication Scheme
-use std::borrow::Cow;
-use std::default::Default;
+use std::{borrow::Cow, default::Default};
-use actix_web::dev::{Payload, ServiceRequest};
-use actix_web::http::header::Header;
-use actix_web::{FromRequest, HttpRequest};
-use futures_util::future::{ready, Ready};
+use actix_utils::future::{ready, Ready};
+use actix_web::{
+ dev::{Payload, ServiceRequest},
+ http::header::Header,
+ FromRequest, HttpRequest,
+};
-use super::config::AuthExtractorConfig;
-use super::errors::AuthenticationError;
-use super::AuthExtractor;
-use crate::headers::authorization;
-use crate::headers::www_authenticate::bearer;
+use super::{config::AuthExtractorConfig, errors::AuthenticationError, AuthExtractor};
pub use crate::headers::www_authenticate::bearer::Error;
+use crate::headers::{authorization, www_authenticate::bearer};
/// [BearerAuth](./struct/BearerAuth.html) extractor configuration.
#[derive(Debug, Clone, Default)]
diff --git a/src/actix_web_httpauth/extractors/mod.rs.html b/src/actix_web_httpauth/extractors/mod.rs.html
index 5e5c3e51a..457dd9932 100644
--- a/src/actix_web_httpauth/extractors/mod.rs.html
+++ b/src/actix_web_httpauth/extractors/mod.rs.html
@@ -112,7 +112,7 @@
use actix_web::dev::ServiceRequest;
use actix_web::Error;
-use futures_util::ready;
+use futures_core::ready;
use pin_project_lite::pin_project;
pub mod basic;
diff --git a/src/actix_web_httpauth/middleware.rs.html b/src/actix_web_httpauth/middleware.rs.html
index 8864bffa6..71c362f90 100644
--- a/src/actix_web_httpauth/middleware.rs.html
+++ b/src/actix_web_httpauth/middleware.rs.html
@@ -359,10 +359,19 @@
358
359
360
+361
+362
+363
//! HTTP Authentication middleware.
use std::{
- error::Error as StdError, future::Future, marker::PhantomData, pin::Pin, rc::Rc, sync::Arc,
+ error::Error as StdError,
+ future::Future,
+ marker::PhantomData,
+ pin::Pin,
+ rc::Rc,
+ sync::Arc,
+ task::{Context, Poll},
};
use actix_web::{
@@ -370,11 +379,8 @@
dev::{Service, ServiceRequest, ServiceResponse, Transform},
Error,
};
-use futures_util::{
- future::{self, FutureExt as _, LocalBoxFuture, TryFutureExt as _},
- ready,
- task::{Context, Poll},
-};
+use futures_core::ready;
+use futures_util::future::{self, FutureExt as _, LocalBoxFuture, TryFutureExt as _};
use crate::extractors::{basic, bearer, AuthExtractor};