mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-23 02:43:16 +01:00
Update to the latest actix-web beta. (#8)
Co-authored-by: LukeMathWalker <contact@palmieri.com>
This commit is contained in:
parent
401faaf01d
commit
466b8a65d2
@ -16,7 +16,7 @@ keywords = ["http", "actix-web", "tracing", "logging"]
|
|||||||
categories = ["asynchronous", "web-programming"]
|
categories = ["asynchronous", "web-programming"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "4.0.0-beta.1"
|
actix-web = "4.0.0-beta.3"
|
||||||
tracing = "0.1.19"
|
tracing = "0.1.19"
|
||||||
tracing-futures = "0.2.4"
|
tracing-futures = "0.2.4"
|
||||||
futures = "0.3.5"
|
futures = "0.3.5"
|
||||||
|
@ -167,11 +167,11 @@ where
|
|||||||
type Error = Error;
|
type Error = Error;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>;
|
||||||
|
|
||||||
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||||
self.service.poll_ready(cx)
|
self.service.poll_ready(cx)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn call(&mut self, req: ServiceRequest) -> Self::Future {
|
fn call(&self, req: ServiceRequest) -> Self::Future {
|
||||||
let user_agent = req
|
let user_agent = req
|
||||||
.headers()
|
.headers()
|
||||||
.get("User-Agent")
|
.get("User-Agent")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user