pub fn multipart(self, body: multipart::Form) -> Request {
        let mut content_type = utils::BytesWriter::with_capacity(30 + body.boundary.len());
        let _ = write!(&mut content_type, "multipart/form-data; boundary={}", body.boundary);
        let content_type = unsafe { http::header::HeaderValue::from_maybe_shared_unchecked(content_type.freeze()) };

        let (_, body) = body.finish();
        self.set_header_if_none(header::CONTENT_TYPE, content_type).body(Some(body))
    }
///Creates request with multipart body.
Creates request with multipart body.
Creates request with multipart body .
pub fn multipart(self, body: multipart::Form) -> Request {
        let mut content_type = utils::BytesWriter::with_capacity(30 + body.boundary.len());
        let _ = write!(&mut content_type, "multipart/form-data; boundary={}", body.boundary);
        let content_type = unsafe { http::header::HeaderValue::from_maybe_shared_unchecked(content_type.freeze()) };
        let (_, body) = body.finish();
        self.set_header_if_none(header::CONTENT_TYPE, content_type).body(Some(body))
    }
pub fn multipart ( self , body : multipart :: Form ) -> Request { let mut content_type = utils :: BytesWriter :: with_capacity ( 30 + body . boundary . len ( ) ) ; let _ = write ! ( mut content_type " " body boundary ) ; let content_type = unsafe { http :: header :: HeaderValue :: from_maybe_shared_unchecked ( content_type . freeze ( ) ) } ; let ( _ , body ) = body . finish ( ) ; self . set_header_if_none ( header :: CONTENT_TYPE , content_type ) . body ( Some ( body ) ) }
Creates request with multipart body.
Creates request with multipart body .
self
body
multipart::Form