add streaming body to requests and responses #3

Merged
lx merged 64 commits from stream-body into main 2022-09-13 10:56:54 +00:00
Showing only changes of commit 8a7aca9837 - Show all commits

View file

@ -5,7 +5,7 @@ pub use bytes::Bytes;
/// A circular buffer of bytes, internally represented as a list of Bytes /// A circular buffer of bytes, internally represented as a list of Bytes
/// for optimization, but that for all intent and purposes acts just like /// for optimization, but that for all intent and purposes acts just like
/// a big byte slice which can be extended on the right and from which /// a big byte slice which can be extended on the right and from which
/// one can take on the left. /// stuff can be taken on the left.
pub struct BytesBuf { pub struct BytesBuf {
buf: VecDeque<Bytes>, buf: VecDeque<Bytes>,
buf_len: usize, buf_len: usize,