pub fn new<S>(headers: &HeaderMap, stream: S) -> Multipart
    where
        S: Stream<Item = Result<Bytes, PayloadError>> + Unpin + 'static,
    {
        match Self::boundary(headers) {
            Ok(boundary) => Multipart::from_boundary(boundary, stream),
            Err(err) => Multipart::from_error(err),
        }
    }
/// Create multipart instance for boundary.
Create multipart instance for boundary.
Create multipart instance for boundary .
pub fn new<S>(headers: &HeaderMap, stream: S) -> Multipart
    where
        S: Stream<Item = Result<Bytes, PayloadError>> + Unpin + 'static,
    {
        match Self::boundary(headers) {
            Ok(boundary) => Multipart::from_boundary(boundary, stream),
            Err(err) => Multipart::from_error(err),
        }
    }
pub fn new < S > ( headers : & HeaderMap , stream : S ) -> Multipart where S : Stream < Item = Result < Bytes , PayloadError > > + Unpin + ' static , { match Self :: boundary ( headers ) { Ok ( boundary ) => Multipart :: from_boundary ( boundary , stream ) , Err ( err ) => Multipart :: from_error ( err ) , } }
Create multipart instance for boundary.
Create multipart instance for boundary .
headers
&HeaderMap
stream
S
headers
&HeaderMap
stream
S