Skip to main content

upload_body_from_reader

Function upload_body_from_reader 

Source
pub fn upload_body_from_reader<R>(reader: R) -> BlobUploadBody
where R: AsyncRead + Send + 'static,
Expand description

Wrap a tokio::io::AsyncRead (a file, a pipe, a decompressor) as a BlobUploadBody. The reader is read in chunks as the request body is sent; it is never buffered whole.