Sean McArthur
8ba9a8d2c4
feat(body): add body::aggregate and body::to_bytes functions
...
Adds utility functions to `hyper::body` to help asynchronously
collecting all the buffers of some `HttpBody` into one.
- `aggregate` will collect all into an `impl Buf` without copying the
contents. This is ideal if you don't need a contiguous buffer.
- `to_bytes` will copy all the data into a single contiguous `Bytes`
buffer.
2019-12-06 10:03:05 -08:00
Sean McArthur
0dc89680cd
style(lib): run rustfmt and enforce in CI
2019-12-05 13:55:17 -08:00
Sean McArthur
cb3f39c2dc
feat(lib): update Tokio, bytes, http, h2, and http-body
2019-12-04 10:56:34 -08: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
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
messense
22142943f4
docs(examples): Update client_json example to use async await
2019-07-11 23:17:06 -07:00
Alexis Mousset
e3dc6c5511
docs(examples): Fix typo in client_json example comment
...
Fixes typo on comment about error types in client_json example.
2018-08-27 10:23:16 -07:00
Özgür Akkurt
9cd971d8f3
docs(client): improve client_json example
2018-07-06 12:37:50 -07:00
ozgurakkurt
e06dc52ef6
docs(client): Add client_json example
...
Closes #1581
2018-07-03 14:41:50 -07:00