Christian Battaglia
489a3b9f1d
Merge branch 'master' into master
2020-01-27 13:44:42 -05:00
Maxim Vorobjov
8888520d83
Add benchmark for full stack request lifecycle ( #1298 )
...
* add benchmark for full stack request lifecycle
* add direct service benchmarks
* fix newline
* add cloneable service benchmarks
* remove cloneable bench experiments + cargo fmt
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-25 08:05:25 +09:00
kevinpoitra
3d622d6012
Fix type confusion when using `time::parse` followed by `using_offset`
2020-01-24 01:16:27 -06:00
kevinpoitra
8d692c0d08
Add missing `time::offset` macro import
2020-01-24 00:41:15 -06:00
kevinpoitra
8945236b57
Merge branch 'master' into master
2020-01-24 01:28:59 -05:00
Maxim Vorobjov
58844874a0
Fixing #1295 convert UnsafeCell to RefCell in CloneableService ( #1303 )
...
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-24 14:51:38 +09:00
kevinpoitra
9398e006c5
Merge branch 'master' into master
2020-01-23 01:38:43 -05:00
Rob Ede
a3287948d1
allow explicit SameSite=None cookies ( #1282 )
...
fixes #1035
2020-01-23 10:08:23 +09:00
Jacob Pratt
5192d296f9
Upgrade to time 0.2.3
...
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.
2020-01-17 00:09:52 -05:00
kevinpoitra
3e5e3cdac8
Merge branch 'master' into master
2020-01-11 06:15:49 -05:00
linkmauve
abb462ef85
Replace sha1 dependency with sha-1 ( #1258 )
...
* Replace sha1 dependency with sha-1
This other crate is being maintained, and it offers better performances
when using the `asm` feature (especially [on
AArch64](https://github.com/RustCrypto/hashes/pull/97 )).
* Update CHANGES.md with the sha-1 migration
* Add a test for hash_key()
2020-01-11 02:34:31 +09:00
Nikolay Kim
e66312b664
add extra constraints
2020-01-10 11:36:59 +06:00
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
c3b4f05149
Enforce a UTC time offset when converting an `OffsetDateTime` into a Header value
2020-01-08 01:09:21 -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
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
52018a6c47
Fix a few errors with time related tests from the `time` upgrade
2020-01-06 05:42:32 -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
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
Andrii Radyk
30dcaf9da0
fix deprecated Error::description ( #1218 )
2019-12-16 07:43:19 +06:00
Nikolay Kim
3d64d565d9
fix warnings
2019-12-13 11:46:02 +06:00
Nikolay Kim
c1deaaeb2f
cleanup imports
2019-12-13 11:24:57 +06:00
Nikolay Kim
b81417c2fa
fix warnings
2019-12-13 10:59:02 +06:00
Nikolay Kim
4937c9f9c2
refactor http-test server
2019-12-12 23:08:38 +06:00
Nikolay Kim
fa07415721
Replace flate2-xxx features with compress
2019-12-12 15:08:08 +06:00
Nikolay Kim
b4b3350b3e
Add websockets continuation frame support
2019-12-12 14:06:54 +06:00
0x1793d1
1b8d747937
Fix extra line feed ( #1209 )
2019-12-12 07:05:39 +06:00
Nikolay Kim
131c897099
upgrade to actix-net release
2019-12-11 19:20:20 +06:00
Nikolay Kim
5132257b0d
Fix buffer remaining capacity calcualtion
2019-12-09 21:55:22 +06:00
Nikolay Kim
0c1f5f9edc
Check Upgrade service readiness before calling it
2019-12-09 17:40:15 +06:00
Sameer Dhar
e4382e4fc1
Fix broken docs ( #1204 )
...
Fixed un escaped brackets in lib.rs, and reflowed links to ConnectionInfo in app, config, and server.rs
2019-12-09 10:02:43 +06:00
Nikolay Kim
a3ce371312
ws ping and pong uses bytes #1049
2019-12-09 07:01:22 +06:00
Nikolay Kim
1f3ffe38e8
update actix-service dep
2019-12-08 19:25:24 +06:00
Nikolay Kim
4a8a9ef405
update tests and clippy warnings
2019-12-08 12:31:16 +06:00
Nikolay Kim
6c9f9fff73
clippy warnings
2019-12-08 00:46:51 +06:00
daxpedda
e5f3d88a4e
Switch brotli compressor to rust. ( #1197 )
...
* Switch to a rustified version of brotli.
* Some memory optimizations.
* Make brotli not optional anymore.
2019-12-07 21:55:41 +06:00
Nikolay Kim
0ba125444a
Add impl ResponseBuilder for Error
2019-12-07 21:41:34 +06:00
daxpedda
4921243add
Fix rustls build. ( #1195 )
2019-12-07 16:14:09 +06:00
Nikolay Kim
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00
Nikolay Kim
b45c6cd66b
replace hashbrown with std hashmap
2019-12-04 18:33:43 +06:00
Nikolay Kim
14075ebf7f
use released versions of actix-net
2019-12-02 23:33:39 +06:00
Nikolay Kim
068f047dd5
update service factory config
2019-12-02 21:37:13 +06:00