pub fn body<R>(mut self, reader: R) -> Self
    where
        R: BufRead + Unpin + Send + Sync + 'static,
    {
        self.res
            .set_body(http_types::Body::from_reader(reader, None));
        self.set_mime(mime::APPLICATION_OCTET_STREAM)
    }
/// Pass raw bytes as the request body.
///
/// # Mime
///
/// The encoding is set to `application/octet-stream`.
Pass raw bytes as the request body.
Pass raw bytes as the request body .
pub fn body<R>(mut self, reader: R) -> Self
    where
        R: BufRead + Unpin + Send + Sync + 'static,
    {
        self.res
            .set_body(http_types::Body::from_reader(reader, None));
        self.set_mime(mime::APPLICATION_OCTET_STREAM)
    }
pub fn body < R > ( mut self , reader : R ) -> Self where R : BufRead + Unpin + Send + Sync + ' static , { self . res . set_body ( http_types :: Body :: from_reader ( reader , None ) ) ; self . set_mime ( mime :: APPLICATION_OCTET_STREAM ) }
Pass raw bytes as the request body.
Pass raw bytes as the request body .
mut self
reader
R
mut self
reader
R
mime
The encoding is set to `application/octet-stream`.
The encoding is set to ` application / octet - stream ` .