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
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
5da17df97f
chore(lib): individually disable tests and examples that aren't updated
2019-07-12 13:44:03 -07:00
Fuyang Liu
7ff8fccced
docs(examples): update echo example to use async/await
2019-07-12 10:39:08 -07:00
Sean McArthur
01c03db7ea
chore(lib): add dyn keyword to trait objects ( #1820 )
...
Requires Rust 1.27.
2019-06-03 13:08:13 -07:00
Sean McArthur
1e3bc6bf1a
chore(examples): fix echo compilation without NLL
2018-06-05 12:33:14 -07:00
Sean McArthur
41291346d0
docs(examples): add comments to the echo example
2018-06-05 12:27:33 -07:00
Josh Leeb-du Toit
924c6da25b
docs(examples): update echo example with functionality from the guide
...
Update the echo example based on the functionality explained in the
Hyper guide: https://hyper.rs/guides/server/echo
Closes #1528
2018-06-05 11:38:59 -07:00
Sean McArthur
a16234fa26
docs(examples): add some comments in the client example
2018-05-03 12:00:44 -07:00