Commit Graph

3042 Commits

Author SHA1 Message Date
kevinpoitra 7a43c564e1 Convert `Cookie::max_age` and `Cookie::expires` examples to `time` 0.2 2020-01-08 02:46:36 -06:00
kevinpoitra 85e341b0b0 Fix the actix-http:🍪:do_not_panic_on_large_max_ages test 2020-01-08 02:20:57 -06:00
kevinpoitra 0eb8d07e84 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 2020-01-08 02:20:26 -06:00
kevinpoitra 7e569bccf6 Replace a few additional instances of `Duration::seconds(0)` with `Duration::zero()` 2020-01-08 01:48:27 -06:00
kevinpoitra 3554e2d45e Use `OffsetDateTime::as_seconds_f64` instead of manually calculating the amount of seconds from nanoseconds 2020-01-08 01:23:12 -06:00
kevinpoitra 29116b8465 Remove unneeded conversion of time::Duration to std::time::Duration 2020-01-08 01:18:53 -06:00
kevinpoitra a1366e2097 Use the more readable version of `Duration::seconds(0)`, `Duration::zero()` 2020-01-08 01:11:25 -06:00
kevinpoitra c3b4f05149 Enforce a UTC time offset when converting an `OffsetDateTime` into a Header value 2020-01-08 01:09:21 -06:00
kevinpoitra edd2cb827e Use `time` without any of its deprecated functions 2020-01-08 01:04:22 -06:00
kevinpoitra 92381b10fa Update CHANGES.md 2020-01-07 22:12:26 -06:00
kevinpoitra a3b6f2981e Correctly parse C's asctime time format using time 0.2's new format patterns 2020-01-07 22:05:28 -06:00
kevinpoitra 555dead1c4 Upgrade `time` to 0.2.2 2020-01-07 22:01:24 -06:00
kevinpoitra 34bbf75ecc Implement logic to convert a RFC 850 two-digit year into a full length year, and organize time parsing related functions 2020-01-07 16:47:41 -06:00
kevinpoitra dca8e23b4d
Merge branch 'master' into master 2020-01-06 13:57:13 -05:00
linkmauve f5fd6bc49f Fix actix-http examples (#1259)
Fix actix-http examples
2020-01-07 00:15:04 +09:00
kevinpoitra 52018a6c47 Fix a few errors with time related tests from the `time` upgrade 2020-01-06 05:42:32 -06:00
kevinpoitra bd4807f4d3 Update CHANGES.md 2020-01-06 05:09:58 -06:00
kevinpoitra 381c8ebe92 Remove unused `time` dependency from actix-multipart 2020-01-06 05:08:03 -06:00
kevinpoitra 2158a8e097 Parse time strings with `PrimitiveDateTime::parse` instead of `OffsetDateTime::parse` 2020-01-06 02:23:23 -06:00
kevinpoitra 729004aa6b Use `OffsetDateTime` instead of `PrimitiveDateTime` 2020-01-05 21:25:49 -06:00
kevinpoitra ebe92a0f6c Upgrade `time` to 0.2.1 2020-01-04 13:21:01 -06:00
Jeremy Wright 2803fcbe22 Small grammaritical update to lib.rs (#1248) 2020-01-03 08:45:17 +06:00
Nikolay Kim 67793c5d92 add ssl feature migration 2019-12-30 21:22:04 +06:00
Jonathan Brookins bcb5086c91 Added 2.0.0 rustls feature name change (#1244) 2019-12-30 21:16:04 +06:00
wojciechkepka 7bd2270290 Fix link to example in readme.md (#1236)
* Fix link to example in readme.md

* Add links to openssl and rustls examples

* Rustls should be uppercase
2019-12-26 19:42:07 +09:00
Nikolay Kim a4ad5e6b69 update timeouts for test server 2019-12-25 20:52:20 +04:00
Nikolay Kim 6db909a3e7 update migration 2019-12-25 20:27:30 +04:00
Nikolay Kim 642ae161c0 prep actix-web release 2019-12-25 20:21:00 +04:00
Nikolay Kim 7b3c99b933 prep actix-framed release 2019-12-25 20:17:22 +04:00
Nikolay Kim f86ce0390e allow to specify multi pattern for resources 2019-12-25 20:14:44 +04:00
Nikolay Kim 7882f545e5 Allow to gracefully stop test server via TestServer::stop() 2019-12-25 12:10:48 +04:00
Nikolay Kim 1c75e6876b update migration 2019-12-22 17:16:07 +04:00
Nikolay Kim 6a0cd2dced Rename HttpServer::start() to HttpServer::run() 2019-12-22 17:12:22 +04:00
Nikolay Kim c7f3915779 update actix-service dep 2019-12-22 16:39:25 +04:00
Yuki Okushi f45db1f909
Enable GitHub Actions and fix file URL behavior (#1232)
* Use GitHub Actions

* Fix unused imports on Windows

* Fix test for Windows

* Stop to run CI for i686-pc-windows-msvc for now

* Use `/` instead of `\` on Windows

* Add entry to changelog

* Prepare actix-files release
2019-12-22 16:43:41 +09:00
Darin 3751a4018e fixed test::init_service api docs (missing await) (#1230) 2019-12-21 08:47:18 +06:00
Nikolay Kim 0cb1b0642f add test server data test 2019-12-20 23:18:59 +06:00
Nikolay Kim 48476362a3 update changes 2019-12-20 17:59:34 +06:00
Nikolay Kim 2b4256baab add links to configs 2019-12-20 17:49:05 +06:00
Nikolay Kim e5a50f423d Make web::Data deref to Arc<T> #1214 2019-12-20 17:45:35 +06:00
Nikolay Kim 8b8a9a995d bump ver 2019-12-20 17:36:48 +06:00
Nikolay Kim 74fa4060c2 fix awc tests 2019-12-20 17:27:32 +06:00
Nikolay Kim c877840c07 rename App::register_data to App::app_data and HttpRequest::app_data returns Option<&T> instead of Option<&Data<T>> 2019-12-20 17:13:09 +06:00
Nikolay Kim 20248daeda Allow to set peer_addr for TestRequest #1074 2019-12-20 16:11:51 +06:00
Nikolay Kim a08d8dab70 AppConfig::secure() is always false. #1202 2019-12-20 16:04:51 +06:00
tglman fbbb4a86e9 feat: add access to the session also from immutable references (#1225) 2019-12-20 13:59:07 +06:00
Nikolay Kim 1d12ba9d5f Replace brotli with brotli2 #1224 2019-12-20 13:50:07 +06:00
Nikolay Kim 8c54054844 Use .advance() intead of .split_to() 2019-12-19 09:56:14 +06:00
Nikolay Kim 1732ae8c79 fix Bodyencoding trait usage 2019-12-18 09:30:14 +06:00
Rajasekharan Vengalil 3b860ebdc7 Fix poll_ready call for WebSockets upgrade (#1219)
* Fix poll_ready call for WebSockets upgrade

* Poll upgrade service from H1ServiceHandler too
2019-12-17 13:34:25 +06:00