[][src]Function bindle::client::load::raw

pub async fn raw<P: AsRef<Path>>(
    file_path: P
) -> Result<(impl Stream<Item = Result<BytesMut, Error>>, u64)>

Loads a file as an async Stream, returning the stream, and the length of the file (for use in setting the content-length in the multipart form). Used primarily for streaming parcel data to a bindle server