Alex Gaynor
eef407d60e
docs(client): Remove comment that had grown out of date ( #1918 )
2019-08-30 11:14:56 -07:00
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
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
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
Lucio Franco
ec520d5602
feat(service): use tower_service::Service for hyper::service
2019-08-20 12:01:06 -07:00
Sean McArthur
750ee95a7c
chore(body): fix missing SizeHint import
2019-08-19 16:34:37 -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
Kyle Huey
a503f8b336
fix(client): impl<T: Connect> Connect for Box<T> ( #1889 )
2019-08-14 14:10:40 -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
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
Sean McArthur
1f6575279e
test(h1): re-enable the proto::h1::io tests
2019-07-16 14:22:17 -07:00
Weihang Lo
c71abe5c20
docs(client): doc tests to async/await
2019-07-15 11:21:16 -07:00
Weihang Lo
e90f0037d3
docs(client): HttpInfo doc test to async/await
2019-07-15 11:21:16 -07:00
Weihang Lo
e0c1090ca7
docs(client): send_request doc test to async/await
2019-07-15 11:21:16 -07:00
Weihang Lo
7c2622abef
docs(service): service_fn doc test to async/await
2019-07-15 11:21:16 -07:00
Weihang Lo
b3e337dd99
docs(service): make_service_fn doc test to async/await
2019-07-15 11:21:16 -07:00
Weihang Lo
e6a7e33cf4
docs(body): wrap_stream using futures_util
2019-07-15 11:21:16 -07:00
Weihang Lo
47407f5c01
docs(server): serve_connection doc test to async/await
2019-07-15 11:21:16 -07:00
Weihang Lo
ca10ca6284
docs(server): update `with_graceful_shutdown doc test
...
Signed-off-by: Weihang Lo <me@weihanglo.tw >
2019-07-15 11:21:16 -07:00
Weihang Lo
13afb6e0da
docs(server): doc test to async/await
2019-07-15 11:21:16 -07:00
Weihang Lo
87b4850694
docs(server): doc test of Builder to async future
...
Signed-off-by: Weihang Lo <me@weihanglo.tw >
2019-07-15 11:21:16 -07:00
Sean McArthur
5da17df97f
chore(lib): individually disable tests and examples that aren't updated
2019-07-12 13:44:03 -07:00
Sean McArthur
4441372121
feat(body): require Sync when wrapping a dynamic Stream
2019-07-10 16:49:21 -07:00
Sean McArthur
3524db9473
refactor(client): use a tokio-threadpool for the GaiResolver
2019-07-10 16:11:05 -07:00
Sean McArthur
ccc7c25334
chore(body): re-enable Body::wrap_stream
2019-07-10 14:17:36 -07:00
Sean McArthur
f0478c6267
feat(rt): export hyper::rt::main attribute macro
...
Usage:
#[hyper::rt::main]
async fn main() {
// async stuff in here
}
2019-07-10 14:12:21 -07:00
Sean McArthur
8d4ae27b42
refactor(lib): remove build script detecting rust >= 1.34
2019-07-10 10:23:48 -07:00
Sean McArthur
8f4b05ae78
feat(lib): update to std::future::Future
...
BREAKING CHANGE: All usage of async traits (`Future`, `Stream`,
`AsyncRead`, `AsyncWrite`, etc) are updated to newer versions.
2019-07-09 15:55:22 -07:00
Sean McArthur
da9b0319ef
refactor(lib): update to 2018 edition
2019-07-09 15:16:01 -07:00
Sean McArthur
5d44f8841c
v0.12.32
2019-07-08 16:17:40 -07:00
Sean McArthur
3e2f19e5bb
chore(lib): allow deprecated mem::uninitialized
2019-07-08 16:17:03 -07:00
Sean McArthur
3446af020b
refactor(http1): detect whether a Token parse error is for method or uri
2019-07-03 15:06:44 -07:00
Dietmar Maurer
cf24765a22
style(client): HttpConnector: use consistent naming - s/buf/buffer/ ( #1840 )
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com >
2019-07-02 09:45:59 -07:00
Dietmar Maurer
386109c421
feat(client): HttpConnector: allow to set socket buffer sizes
...
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com >
2019-07-01 11:09:04 -07:00
Sean McArthur
31ec07a387
v0.12.31
2019-06-25 16:08:24 -07:00
Sean McArthur
6b2940631e
v0.12.30
2019-06-14 13:43:00 -07:00
Sean McArthur
8316f96d80
fix(http1): force always-ready connections to yield after a few spins
2019-06-14 13:35:54 -07:00