mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
actix-web beta 15 updates (#216)
This commit is contained in:
@ -3,6 +3,12 @@
|
||||
## Unreleased - 2021-xx-xx
|
||||
|
||||
|
||||
## 0.5.0-beta.6 - 2021-12-18
|
||||
* Update `actix-web` dependency to `4.0.0.beta-15`. [#216]
|
||||
|
||||
[#216]: https://github.com/actix/actix-extras/pull/216
|
||||
|
||||
|
||||
## 0.5.0-beta.5 - 2021-12-12
|
||||
* Update `actix-web` dependency to `4.0.0.beta-14`. [#209]
|
||||
* Remove `UserSession` implementation for `RequestHead`. [#209]
|
||||
|
@ -1,8 +1,8 @@
|
||||
[package]
|
||||
name = "actix-session"
|
||||
version = "0.5.0-beta.5"
|
||||
version = "0.5.0-beta.6"
|
||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||
description = "Sessions for Actix web"
|
||||
description = "Sessions for Actix Web"
|
||||
keywords = ["http", "web", "framework", "async", "session"]
|
||||
homepage = "https://actix.rs"
|
||||
repository = "https://github.com/actix/actix-extras.git"
|
||||
@ -18,9 +18,9 @@ default = ["cookie-session"]
|
||||
cookie-session = ["actix-web/secure-cookies"]
|
||||
|
||||
[dependencies]
|
||||
actix-service = "2.0.0"
|
||||
actix-service = "2"
|
||||
actix-utils = "3"
|
||||
actix-web = { version = "4.0.0-beta.14", default_features = false, features = ["cookies"] }
|
||||
actix-web = { version = "4.0.0-beta.15", default_features = false, features = ["cookies"] }
|
||||
|
||||
derive_more = "0.99.5"
|
||||
futures-util = { version = "0.3.7", default-features = false }
|
||||
|
@ -3,9 +3,9 @@
|
||||
> Sessions for Actix Web.
|
||||
|
||||
[](https://crates.io/crates/actix-session)
|
||||
[](https://docs.rs/actix-session/0.5.0-beta.5)
|
||||
[](https://docs.rs/actix-session/0.5.0-beta.6)
|
||||

|
||||
[](https://deps.rs/crate/actix-session/0.5.0-beta.5)
|
||||
[](https://deps.rs/crate/actix-session/0.5.0-beta.6)
|
||||
|
||||
|
||||
## Documentation & Resources
|
||||
|
@ -1,6 +1,6 @@
|
||||
//! Cookie based sessions. See docs for [`CookieSession`].
|
||||
|
||||
use std::{collections::HashMap, error::Error as StdError, rc::Rc};
|
||||
use std::{collections::HashMap, rc::Rc};
|
||||
|
||||
use actix_utils::future::{ok, Ready};
|
||||
use actix_web::{
|
||||
@ -301,7 +301,7 @@ where
|
||||
S::Future: 'static,
|
||||
S::Error: 'static,
|
||||
B: MessageBody + 'static,
|
||||
B::Error: StdError,
|
||||
B::Error: Into<Error>,
|
||||
{
|
||||
type Response = ServiceResponse<EitherBody<B>>;
|
||||
type Error = S::Error;
|
||||
@ -329,7 +329,7 @@ where
|
||||
S::Future: 'static,
|
||||
S::Error: 'static,
|
||||
B: MessageBody + 'static,
|
||||
B::Error: StdError,
|
||||
B::Error: Into<Error>,
|
||||
{
|
||||
type Response = ServiceResponse<EitherBody<B>>;
|
||||
type Error = S::Error;
|
||||
@ -516,7 +516,7 @@ mod tests {
|
||||
let request = test::TestRequest::with_uri("/test/")
|
||||
.cookie(cookie)
|
||||
.to_request();
|
||||
let body = test::read_response(&app, request).await;
|
||||
let body = test::call_and_read_body(&app, request).await;
|
||||
assert_eq!(body, Bytes::from_static(b"counter: 100"));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user