1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 17:22:57 +01:00
Commit Graph

80 Commits

Author SHA1 Message Date
Luca Palmieri
04f4934001
[actix-session/redis-rs] Catch server-driven disconnections and prevent a user-visible issue via a retry (#235)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-03-25 19:08:09 +00:00
tglman
4d77e26e1e
add support for session access from guards (#234) 2022-03-25 18:25:38 +00:00
Luca Palmieri
8db1088345
[actix-session] Opaque 500s (#236) 2022-03-25 18:10:38 +00:00
Rob Ede
bf41b4cd9c
prepare actix-session release 0.6.1 2022-03-21 00:48:24 +00:00
Luca Palmieri
449abd6081
[actix-session] Documentation - Typo(s) / Improvements (#228) 2022-03-20 21:57:26 +00:00
Rob Ede
010a905dca
prepare actix-session release 0.6.0 2022-03-15 16:29:37 +00:00
Rob Ede
2d63973654
final session doc tweaks 2022-03-15 16:27:04 +00:00
Luca Palmieri
7e6335a09f
Rework actix session (#212)
Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Luca P <rust@lpalmieri.com>
Co-authored-by: Sebastian Rollén <38324289+SebRollen@users.noreply.github.com>
2022-03-05 23:22:14 +00:00
Rob Ede
ab3615b8d5
relax body bounds (#223) 2022-02-07 02:30:26 +00:00
Rob Ede
25d3d34927
fix doctest 2022-02-03 22:41:41 +00:00
Rob Ede
323d01fcca
bump actix-web to 4.0.0-rc.1 2022-02-03 22:33:47 +00:00
Rob Ede
0d12201073
update to actix web v4 beta 18 (#218) 2021-12-29 10:22:56 +00:00
Rob Ede
6676a50944
actix-web beta 15 updates (#216) 2021-12-18 03:37:23 +00:00
Rob Ede
74ec115161
migrate to actix-web beta 14 (#209) 2021-12-11 16:05:21 +00:00
Rob Ede
56051786a6
standardize future types to ones from actix_utils 2021-12-08 07:29:12 +00:00
Rob Ede
ec66754c0d
standardize crate level lints 2021-12-08 06:11:13 +00:00
Rob Ede
13f8dcb717
update to aw beta 9 2021-11-22 23:11:58 +00:00
Chiu-Hsiang Hsu
545873b5b2
update actix-web dependencies to v4 beta.10 (#203)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-10-21 14:10:00 +01:00
Luca Palmieri
d0f2075ce9
Implement Clone for CookieSession. (#201) 2021-10-18 13:03:14 +01:00
Rob Ede
e10937103e
fmt with new width 2021-08-30 23:27:44 +01:00
Rob Ede
c6f579790f
bump msrv to 1.51 2021-08-30 23:10:36 +01:00
Rob Ede
20ef05c36e
fix doctest ci (#188) 2021-06-27 07:02:38 +01:00
Rob Ede
d0f0fb474b
fixup other cargo manifests 2021-04-02 11:44:18 +01:00
Rob Ede
fc6563a019
various session api improvements (#170) 2021-03-23 22:35:27 +00:00
Rob Ede
c7df62d0b6
simplify ci like actix-web (#165) 2021-03-22 11:46:02 +00:00
Rob Ede
2254a429d4
use forward_ready for service definitions 2021-03-22 05:18:59 +00:00
Andrey Kutejko
ca85f6b245
Update dependencies (Tokio 1.0) (#144) 2021-03-21 22:50:26 +00:00
Rob Ede
5a72dd33d5
session, redis, and httpauth pre-v4 releases (#162) 2021-03-21 09:38:29 +00:00
Quentin Kniep
936a116264
Fix purge from other paths than root (#129)
Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-12-04 03:52:48 +09:00
Yuki Okushi
f970d90894
Use re-exported bytes items from instead of using them directly (#139) 2020-12-01 10:21:56 +09:00
FallenWarrior2k
bb8120a8c0
Update Session::set_session to take IntoIterator (#105) 2020-09-22 00:04:21 +01:00
Rob Ede
bad5f32a68
update all packages to use actix-web v3 (#94) 2020-09-11 16:26:15 +01:00
Yuki Okushi
2a20ce4568
Replace deprecated from_master with derive_from (#82) 2020-07-14 11:15:30 +01:00
Yuki Okushi
bd963fb7d1
Fix clippy warnings 2020-07-07 03:54:18 +09:00
LJ
e03544cb0d
Allow for session cookies to be lazily created (#39) 2020-05-25 01:27:49 +01:00
Yuki Okushi
446b920d96
Replace deprecated methods with now_utc() 2020-05-09 08:07:31 +09:00
Pieter Frenssen
ede715374b
Clarify how to use Session::set_session() (#41)
* Clarify in examples how to use Session::set_session().

* Add a doc example for Session::set_session().
2020-04-08 01:49:58 +09:00
Yuki Okushi
00f520cd2d
Fix clippy warnings 2020-03-18 06:34:32 +09:00
Yuki Okushi
510be85629
Fix style 2020-03-15 06:59:41 +09:00
Yuki Okushi
bc36cc1159
Minimize futures dependency 2020-03-15 06:58:47 +09:00
Björn Steinbrink
d849157411 Update Session doc to refer to UserSession instead of RequestSession 2020-02-11 16:25:53 +01:00
Andrey Kutejko
664f9a8b2d
Long lasting auto-prolonged session (#1292)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-29 10:26:39 +09:00
kevinpoitra
e634e64847 Upgrade time to 0.2.5 (#1254)
* Use `OffsetDateTime` instead of `PrimitiveDateTime`

* Parse time strings with `PrimitiveDateTime::parse` instead of `OffsetDateTime::parse`

* Remove unused `time` dependency from actix-multipart

* Fix a few errors with time related tests from the `time` upgrade

* Implement logic to convert a RFC 850 two-digit year into a full length year, and organize time parsing related functions

* Upgrade `time` to 0.2.2

* Correctly parse C's asctime time format using time 0.2's new format patterns

* Update CHANGES.md

* Use `time` without any of its deprecated functions

* Enforce a UTC time offset when converting an `OffsetDateTime` into a Header value

* Use the more readable version of `Duration::seconds(0)`, `Duration::zero()`

* Remove unneeded conversion of time::Duration to std::time::Duration

* Use `OffsetDateTime::as_seconds_f64` instead of manually calculating the amount of seconds from nanoseconds

* Replace a few additional instances of `Duration::seconds(0)` with `Duration::zero()`

* Truncate any nanoseconds from a supplied `Duration` within `Cookie::set_max_age` to ensure two Cookies with the same amount whole seconds equate to one another

* Fix the actix-http:🍪:do_not_panic_on_large_max_ages test

* Convert `Cookie::max_age` and `Cookie::expires` examples to `time` 0.2

Mainly minor  changes. Type inference can be used alongside the new
`time::parse` method, such that the type doesn't need to be specified.
This will be useful if a refactoring takes place that changes the type.
There are also new macros, which are used where possible.

One change that is not immediately obvious, in `HttpDate`, there was an
unnecessary conditional. As the time crate allows for negative durations
(and can perform arithmetic with such), the if/else can be removed
entirely.

Time v0.2.3 also has some bug fixes, which is why I am not using a more
general v0.2 in Cargo.toml.

v0.2.3 has been yanked, as it was backwards imcompatible. This version
reverts the breaking change, while still supporting rustc back to
1.34.0.

* Add missing `time::offset` macro import

* Fix type confusion when using `time::parse` followed by `using_offset`

* Update `time` to 0.2.5

* Update CHANGES.md

Co-authored-by: Jacob Pratt <the.z.cuber@gmail.com>
2020-01-28 20:44:22 +09:00
Nikolay Kim
f86ce0390e allow to specify multi pattern for resources 2019-12-25 20:14:44 +04:00
Nikolay Kim
6a0cd2dced Rename HttpServer::start() to HttpServer::run() 2019-12-22 17:12:22 +04:00
tglman
fbbb4a86e9 feat: add access to the session also from immutable references (#1225) 2019-12-20 13:59:07 +06:00
Nikolay Kim
4a8a9ef405 update tests and clippy warnings 2019-12-08 12:31:16 +06:00
tglman
fbead137f0 feat: add access to UserSession from RequestHead (#1164)
* feat: add access to UserSession from RequestHead

* add test case for session from RequestHead and changes entry for the new feature
2019-12-06 11:21:43 +06:00
Nikolay Kim
b45c6cd66b replace hashbrown with std hashmap 2019-12-04 18:33:43 +06:00
Nikolay Kim
4dc31aac93 use actix_rt::test for test setup 2019-11-26 11:25:50 +06:00