Damian Lesiuk
a4546f02d2
make TrailingSlash enum accessible ( #1673 )
...
Co-authored-by: Damian Lesiuk <lesiuk@sabre.com>
2020-09-13 00:55:39 +01:00
Igor Aleksanov
121075c1ef
awc: Rename Client::build to Client::builder ( #1665 )
2020-09-11 09:24:39 +01:00
Rob Ede
9d0534999d
bump connect and tls versions ( #1655 )
2020-09-09 09:20:54 +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
9a7f93610a
web: Replace net2
crate with socket2
2020-05-19 09:34:37 +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
Otavio Salvador
7e0d898d5a
Fix clippy warnings
...
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2020-03-12 00:52:21 -03:00
Maksym Vorobiov
835a00599c
rollback missed dependencies and CHANGES in crates except actix-http
2020-02-27 09:37:05 +09:00
Maksym Vorobiov
d9c415e540
disable weird poll test until actix-web based on actix-http:2
2020-02-27 09:37:05 +09:00
Aaron Hill
fe13789345
Use Pin<Box<S>>
in BodyStream
and SizedStream
( #1328 )
...
Fixes #1321
A better fix would be to change `MessageBody` to take a `Pin<&mut
Self>`, rather than a `Pin<&mut Self>`. This will avoid requiring the
use of `Box` for all consumers by allowing the caller to determine how
to pin the `MessageBody` implementation (e.g. via stack pinning).
However, doing so is a breaking change that will affect every user of
`MessageBody`. By pinning the inner stream ourselves, we can fix the
undefined behavior without breaking the API.
I've included @sebzim4500's reproduction case as a new test case.
However, due to the nature of undefined behavior, this could pass (and
not segfault) even if underlying issue were to regress.
Unfortunately, until rust-lang/unsafe-code-guidelines#148 is resolved,
it's not even possible to write a Miri test that will pass when the bug
is fixed.
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-01-31 09:39:34 +09:00
Nikolay Kim
6a0cd2dced
Rename HttpServer::start() to HttpServer::run()
2019-12-22 17:12:22 +04: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
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
Nikolay Kim
1ffa7d18d3
drop unpin constraint
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
fbedaec661
add expect: 100-continue support #141
2019-04-05 16:46:44 -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
34695f4bce
rename test methods; update tests
2019-03-31 20:43:00 -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
88152740c6
move macros tests to codegen crate
2019-03-17 20:20:10 -07:00
Nikolay Kim
a07ea00cc4
add basic test for proc macro
2019-03-17 13:55:03 -07:00
Nikolay Kim
b550f9ecf4
update imports
2019-03-17 01:08:56 -07:00