Expand description
Async bits for web applications.
This includes reading to bytes,
a adapter between std’s Read
trait and tokio’s AsyncRead
,
a write
module for writing HTTP/1
requests and responses,
and a read
module for reading HTTP/1
requests and responses.
Modules§
- Prelude for async utilities for use in web applications.
Structs§
- Helper struct for
read_to_async
.
Functions§
- Reads from
reader
tobuffer
until it returns zero bytes ormax_length
is reached.BytesMut::len
is used as a starting length ofbuffer
. Note thatmax_len
is a suggestion and will probably be overran.