Rob Ede
68117543ea
major cleanup of middleware module ( #1875 )
...
* major cleanup of middleware module
* update changelog
2021-01-05 09:51:58 +00:00
fakeshadow
32de9f8840
Tokio 1.0 ( #1813 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-01-03 23:47:04 +00:00
Logan Magee
4dccd092f3
Bump rand from 0.7.x to 0.8.x ( #1845 )
2020-12-22 23:45:31 +00:00
Damian Lesiuk
a4546f02d2
make TrailingSlash enum accessible ( #1673 )
...
Co-authored-by: Damian Lesiuk <lesiuk@sabre.com>
2020-09-13 00:55:39 +01:00
Yuki Okushi
92b5bcd13f
Check format and tweak CI config ( #1619 )
2020-07-22 00:28:33 +01:00
Yuki Okushi
6dd78d9355
Run rustfmt
2020-05-21 17:56:53 +09:00
Yuki Okushi
a98e53ecb8
web: Minimize futures
dependencies
2020-05-19 08:29:12 +09:00
Omid Rad
32a37b7282
Remove content_length from ResponseBuilder ( #1491 )
...
* Remove content_length since it'll be overwritten by the response body. FIXES #1439
* Add setting of Content-Length to the no_chunking function
* Add changes and migration documentations
* Update MIGRATION.md
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-19 07:46:31 +09: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
1d12ba9d5f
Replace brotli with brotli2 #1224
2019-12-20 13:50:07 +06:00
Nikolay Kim
1732ae8c79
fix Bodyencoding trait usage
2019-12-18 09:30:14 +06:00
Nikolay Kim
db1d6b7963
refactor test server impl
2019-12-12 22:28:47 +06:00
Nikolay Kim
fa07415721
Replace flate2-xxx features with compress
2019-12-12 15:08:08 +06:00
Nikolay Kim
4a8a9ef405
update tests and clippy warnings
2019-12-08 12:31:16 +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
f4c01384ec
update to latest actix-net
2019-12-02 17:33:11 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
8683ba8bb0
rename .to_async() to .to()
2019-11-21 21:36:35 +06:00
Nikolay Kim
3127dd4db6
migrate actix-web to std::future
2019-11-21 16:02:17 +06:00
Marat Safin
cb19ebfe0c
add rustls support for actix-http and awc ( #998 )
...
* add rustls support for actix-http and awc
* fix features conflict
* remove unnecessary duplication
* test server with rust-tls
* fix
* test rustls
* awc rustls test
* format
* tests
* fix dependencies
* fixes and add changes
* remove test-server and Cargo.toml dev-dependencies changes
* cargo fmt
2019-07-31 13:02:56 -07:00
Nikolay Kim
163ca89cf4
more tests
2019-04-17 17:48:25 -07:00
Nikolay Kim
ee33f52736
make extractor config type explicit
2019-04-13 16:35:25 -07:00
Nikolay Kim
4f30fa9d46
Remove generic type for request payload, always use default
2019-04-13 14:50:54 -07:00
Nikolay Kim
0a6dd0efdf
fix compression tests
2019-04-08 12:48:39 -07:00
Nikolay Kim
3872d3ba5a
refactor h1 dispatcher
2019-04-06 08:12:58 -07:00
Nikolay Kim
309c480782
encoder sent uncompressed data before compressed
2019-04-04 15:03:40 -07:00
Nikolay Kim
bca31eb7ad
remove Deref
2019-04-02 13:35:01 -07:00
Nikolay Kim
193f8fb2d9
update tests
2019-03-29 18:51:07 -07:00
Douman
00526f60dc
Impl BodyEncoding for Response ( #740 )
2019-03-29 16:29:11 -07:00
Nikolay Kim
c126713f40
add rustls support to HttpServer
2019-03-29 16:28:32 -07:00
Nikolay Kim
878f32c495
fix tests for no-default-features
2019-03-28 14:27:07 -07:00
Nikolay Kim
605ce05127
App::enable_encoding() allows to enable compression and decompression
2019-03-28 12:32:59 -07:00
Nikolay Kim
e254fe4f9c
allow to override response body encoding
2019-03-27 11:29:31 -07:00
Nikolay Kim
1cca25c276
add client decompression support
2019-03-26 20:45:00 -07:00
Nikolay Kim
1904b01fc0
add content-encoding decompression
2019-03-26 15:14:32 -07:00
Nikolay Kim
50c0ddb3cd
update tests
2019-03-26 12:31:51 -07:00
Nikolay Kim
86a21c956c
rename .middleware to .wrap
2019-03-25 13:02:10 -07:00
Nikolay Kim
b550f9ecf4
update imports
2019-03-17 01:08:56 -07:00
Nikolay Kim
1f9467e880
update tests
2019-03-14 12:01:35 -07:00
Nikolay Kim
fe22e83144
refactor service registration process; unify services and resources
2019-03-06 15:47:15 -08:00
Nikolay Kim
8103d33270
use custom request for FromRequest trait
2019-03-02 19:19:56 -08:00
Nikolay Kim
e6d04d24cc
move fs to separate crate
2019-03-01 23:59:44 -08:00
Nikolay Kim
2d7293aaf8
copy actix-web2
2019-03-01 22:51:32 -08:00
Nikolay Kim
4e7fac08b9
do not override content-length header
2018-10-08 15:30:59 -07:00
Danil Berestov
10678a22af
test content length ( #532 )
2018-10-06 08:17:20 +03:00
Nikolay Kim
2710f70e39
add H1 transport
2018-10-02 17:30:29 -07:00
Nikolay Kim
ae5c4dfb78
refactor http channels list; rename WorkerSettings
2018-10-02 15:25:32 -07:00
Nikolay Kim
d7379bd10b
update server ssl tests; upgrade rustls
2018-10-02 13:41:33 -07:00
Nikolay Kim
b59712c439
add ssl handshake timeout tests
2018-10-02 11:32:43 -07:00
Nikolay Kim
724668910b
fix ssh handshake timeout
2018-10-02 11:18:59 -07:00