John Vandenberg
d6bdfac1b9
build(deps): update derive_more to v1.0 ( #3453 )
...
* build(deps): update derive_more to v1.0
* refactor: use from derive module
---------
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-08-18 14:17:03 +00:00
Rob Ede
d14e98b62b
prevent hang when compressing Sized(0) bodies
...
fixes #3229
2023-12-25 02:27:51 +00:00
Paul
2fe5189954
Do not encode zero-sized response bodies ( #3199 )
...
* Do not encode zero-sized response bodies
* Test empty response remains empty after compression
2023-11-26 20:57:19 +00:00
Rob Ede
215a52f565
chore: avoid single char error bindings
2023-09-03 19:09:42 +01:00
Rob Ede
3eb5a059ad
chore: address clippy warnings
2023-07-20 11:42:20 +01:00
Rob Ede
79a38e0628
apply standard formatting
2023-07-17 02:38:12 +01:00
Rob Ede
06c7945801
retain previously set vary headers when using compress ( #2798 )
...
* retain previously set vary headers when using compress
2022-06-30 09:19:16 +01:00
Rob Ede
80d222aa78
use tracing in actix-http
2022-03-10 03:12:29 +00:00
Rob Ede
ad38973767
move blocking error to web ( #2660 )
2022-02-22 08:45:28 +00:00
Rob Ede
cd511affd5
add ws and http2 feature flags ( #2618 )
2022-01-31 21:22:23 +00:00
Rob Ede
8459f566a8
fix brotli encoding buffer size
2022-01-21 21:17:07 +00:00
Rob Ede
e7cae5a95b
migrate to brotli
crate ( #2538 )
2022-01-15 14:03:16 +00:00
Rob Ede
68cd853aa2
improve docs for Compress
2022-01-03 14:59:01 +00:00
Rob Ede
25fe1bbaa5
add double compress layer test
2022-01-03 14:05:08 +00:00
Rob Ede
e890307091
Fix AcceptEncoding header ( #2501 )
2022-01-03 13:17:57 +00:00
Rob Ede
1296e07c48
relax unpin bounds on payload types ( #2545 )
2021-12-24 17:47:47 +00:00
Rob Ede
ae47d96fc6
use body::None in encoder body
2021-12-17 20:56:54 +00:00
Rob Ede
1d6f5ba6d6
improve codegen on BoxBody poll_next
2021-12-17 19:19:21 +00:00
Ali MJ Al-Nasrawy
57ea322ce5
simplify MessageBody::complete_body interface ( #2522 )
2021-12-17 19:09:08 +00:00
Rob Ede
774ac7fec4
provide optimisation path for single-chunk body types ( #2497 )
2021-12-09 13:52:35 +00:00
Rob Ede
406f694095
standardize rustfmt max_width
2021-12-08 06:01:11 +00:00
Rob Ede
2d053b7036
remove actix_http::http
module ( #2488 )
2021-12-05 14:37:20 +00:00
Rob Ede
c7c02ef99d
body ergonomics v3 ( #2468 )
2021-12-04 19:40:47 +00:00
Rob Ede
d8cbb879dd
make AnyBody
generic on Body
type ( #2448 )
2021-11-16 21:41:35 +00:00
Rob Ede
4df1cd78b7
simplify AnyBody
and BodySize
( #2446 )
2021-11-16 09:21:10 +00:00
Rob Ede
93112644d3
non exhaustive content encoding ( #2377 )
2021-09-01 09:53:26 +01:00
Arthur Le Moigne
ddc8c16cb3
Fix quality parse error in Accept-Encoding HTTP header ( #2344 )
2021-09-01 09:08:29 +01:00
Rob Ede
dade818eba
add middleware composition tests ( #2375 )
2021-08-31 04:18:54 +01:00
Rob Ede
ae35e69382
use rust 1.51 features
2021-08-31 02:52:29 +01:00
Arthur Le Moigne
baa5a663c4
Select compression algorithm using features flags ( #2250 )
...
Add compress-* feature flags in actix-http / actix-web / awc.
This allow enable / disable not wanted compression algorithm.
2021-06-19 20:21:13 +01:00
Rob Ede
532f7b9923
refined error model ( #2253 )
2021-06-17 17:57:58 +01:00
Arthur Le Moigne
3479293416
Add zstd ContentEncoding support ( #2244 )
...
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-06-03 21:32:52 +01:00
Rob Ede
ddaf8c3e43
add associated error type to MessageBody ( #2183 )
2021-05-05 18:36:02 +01:00
Rob Ede
edd9f14752
remove unpin from body types ( #2152 )
2021-04-13 11:16:12 +01:00
Rob Ede
0404b78b54
improve body size docs
2021-02-15 11:24:46 +00:00
Rob Ede
81bef93e5e
add time parser year shift tests
2021-02-12 00:15:25 +00:00
Rob Ede
77efc09362
hide httpmessage mod
2021-02-11 22:58:40 +00:00
fakeshadow
20cf0094e5
fix master branch build. change web::block output type. ( #1957 )
2021-02-06 16:23:59 +00:00
fakeshadow
fe392abeb4
remove actix-threadpool.use actix_rt::task::spawn_blocking ( #1878 )
2021-01-09 16:04:19 +00:00
Taiki Endo
6c5c4ea230
Remove uses of pin_project::project attribute
...
pin-project will deprecate the project attribute due to some unfixable
limitations.
Refs: https://github.com/taiki-e/pin-project/issues/225
2020-06-06 06:44:14 +09:00
Rob Ede
f3b0233477
use mem::take where possible ( #1507 )
2020-05-17 10:54:42 +09:00
Yuki Okushi
7ba14fd113
Run rustfmt
2020-02-27 11:10:55 +09:00
Maksym Vorobiov
e6078bf792
Fix EncoderBody enum to align with Body::Message
2020-02-27 09:37:05 +09:00
Maksym Vorobiov
9d04b250f9
This is a squashed commit:
...
- Convert MessageBody to accept Pin in poll_next
- add CHANGES and increase versions aligned to semver
- update crates to accomodate MessageBody Pin change
- fix tests and dependencies
2020-02-27 09:37:05 +09:00
Nikolay Kim
1d12ba9d5f
Replace brotli with brotli2 #1224
2019-12-20 13:50:07 +06:00
Nikolay Kim
c1deaaeb2f
cleanup imports
2019-12-13 11:24:57 +06:00
Nikolay Kim
fa07415721
Replace flate2-xxx features with compress
2019-12-12 15:08:08 +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
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00