Commit Graph

2088 Commits

Author SHA1 Message Date
Sean McArthur
049b5132db feat(client): change GaiResolver to use a global blocking threadpool
BREAKING CHANGE: Calls to `GaiResolver::new` and `HttpConnector::new` no
  longer should pass an integer argument for the number of threads.
2019-08-29 14:16:43 -07:00
Sean McArthur
2664cf505f refactor(tests): update to newest tokio-timer 2019-08-29 13:50:55 -07:00
Sean McArthur
5b1feb8a3c refactor(lib): update to tokio alpha.4 2019-08-29 13:12:44 -07:00
Daniel Johnson
536779e16c refactor(dns): migrate deprecated trim_{left,right} -> trim_{start,end} 2019-08-29 11:12:56 -07:00
Sean McArthur
ffd554aa37 chore(dependencies): pin alphas to specific versions 2019-08-29 10:43:29 -07:00
Lucio Franco
79c32f8953 feat(body): Update Payload to be a trait alias of http_body::Body (#1908) 2019-08-22 14:13:27 -07:00
Sean McArthur
49b12c415d refactor(lib): fix remaining lint warnings (besides tests) 2019-08-22 13:57:50 -07:00
Sean McArthur
7b1d6d71b7 refactor(lib): fix many lint warnings 2019-08-21 11:58:02 -07:00
lzutao
fc7f81b67c style(lib): use rust 2018 edition idioms (#1910) 2019-08-21 11:22:07 -07:00
lzutao
ae75b3a732 chore(lib): remove async_await feature gate (#1909)
`async_await` is stabilized in rust-lang/rust#63209.
2019-08-21 11:09:14 -07:00
Sean McArthur
a22dabd093 fix(server): change Builder window size methods to be by-value
Closes #1814
2019-08-20 17:45:01 -07:00
Sean McArthur
b3774bd6d3 chore(dependencies): update h2's trailer signature 2019-08-20 17:34:36 -07:00
Sean McArthur
fc784913a3 chore(dependencies): update to newer h2 2019-08-20 16:24:34 -07:00
Sean McArthur
2d525aaae4 chore(dependencies): update to want 0.3 2019-08-20 12:02:05 -07:00
Lucio Franco
ec520d5602 feat(service): use tower_service::Service for hyper::service 2019-08-20 12:01:06 -07:00
Sean McArthur
53a437c382 chore(tests): fixup re-enabled tests 2019-08-19 17:55:37 -07:00
Jakub Wieczorek
821fa03c2a test(client): Uncomment failing tests and make them #[ignore]d. 2019-08-19 16:35:01 -07:00
Jakub Wieczorek
b831ae1870 test(server): Update and re-enable the tests/server.rs test
These tests were temporarily disabled during the migration to the
`std::future::Future` type that's part of the stable Rust now.

This commit updates the tests after the breaking changes and makes them
pass again.
2019-08-19 16:35:01 -07:00
Sean McArthur
750ee95a7c chore(body): fix missing SizeHint import 2019-08-19 16:34:37 -07:00
Sean McArthur
292bb5f2b2 chore(dependencies): update to futures alpha 18
Closes #1897
2019-08-19 16:30:13 -07:00
Sean McArthur
7508bd87b0 refactor(client): restore handshake to by-ref 2019-08-19 16:10:57 -07:00
Sean McArthur
41f4173615 refactor(http2): re-enable http2 client and server support 2019-08-19 15:55:49 -07:00
Douman
4920f5e264 chore(dependencies): Upgrade tokio 2019-08-19 09:00:21 -07:00
Alex Gaynor
c1d40f30b5 chore(dependencies): Bump spmc, since 0.2 was yanked 2019-08-17 11:51:57 -07:00
Kyle Huey
a503f8b336 fix(client): impl<T: Connect> Connect for Box<T> (#1889) 2019-08-14 14:10:40 -07:00
Alex Gaynor
7f1b5f52ba chore(dependencies): update tokio to v0.2.0-alpha.1
Fixes #1893
2019-08-14 11:56:52 -07:00
Yotam Ofek
9d5299b655 refactor(server): work around deprecation of poll_accept method in tokio (#1890) 2019-08-14 11:46:49 -07:00
Sean McArthur
a543c8eef2 test(body): remove concat test for Body 2019-07-23 11:07:06 -07:00
Sean McArthur
46749c14c6 test(client): fix background thread panics 2019-07-23 11:03:14 -07:00
Weihang Lo
74195bc17b test(end_to_end): ignore unimplemented h2 benchmarks
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2019-07-23 10:53:03 -07:00
Weihang Lo
4f2abd81e8 test(benches): update end to end benchmark to async/await
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2019-07-23 10:53:03 -07:00
Weihang Lo
fb880c6295 test(benches): uncomment deny warning attr 2019-07-23 10:53:03 -07:00
Jakub Wieczorek
d683e13ecb test(client): Re-enable the tests/client.rs test
These tests were temporarily disabled during the migration to the
`std::future::Future` type that's part of the stable Rust now.

This commit updates the tests after the breaking changes and makes them
pass again.
2019-07-23 10:22:26 -07:00
Daiki Mizukami
0d3cbe28fc refactor(rt): remove re-export of tokio::main (#1879)
Closes #1878.

BREAKING CHANGE: Replace all usage of `rt::main` with `tokio::main`.
2019-07-22 10:06:36 -07:00
Sean McArthur
1d00bb29d4 chore(client): re-enable client's custom executor config 2019-07-19 14:18:10 -07:00
Gurwinder Singh
283522b15a chore(dependencies): Upgrade futures version (#1877) 2019-07-18 11:11:49 -07:00
Weihang Lo
db86e554d5 test(benches): update server benchmark to async/await 2019-07-17 10:57:51 -07:00
Weihang Lo
63a8f26583 test(benches): update pipeline benchmark to async/await 2019-07-17 10:57:51 -07:00
Weihang Lo
ed10ffaef3 test(examples): uncomment re-enabled examples 2019-07-16 17:45:53 -07:00
Sean McArthur
1f6575279e test(h1): re-enable the proto::h1::io tests 2019-07-16 14:22:17 -07:00
Weihang Lo
9ae1873756 docs(examples): formatting and refactoring 2019-07-16 10:08:22 -07:00
Weihang Lo
da187b54e8 docs(examples): move web_api to examples folder 2019-07-16 10:08:22 -07:00
Weihang Lo
031036c2e7 docs(examples): fix web_api shared client lifetime issue 2019-07-16 10:08:22 -07:00
Weihang Lo
e8c19fea4c docs(examples): update send_file example to async/await 2019-07-16 10:08:22 -07:00
messense
524a453b6f docs(examples): Update web_api example to use async await 2019-07-16 10:08:22 -07:00
Weihang Lo
7cdfd3d974 docs(examples): update upgrade example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
39471d7e5e docs(examples): update single_threaded example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
22bd31c68f docs(examples): update state example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
af78fd3672 docs(examples): update proxy example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
c71abe5c20 docs(client): doc tests to async/await 2019-07-15 11:21:16 -07:00