pub fn add_field(&mut self, name: String, data: &[u8]) {
        let content_disposition = ContentDisposition::FormData(Some(name), Filename::new());
        let _ = write!(&mut self.storage, "--{}\r\nContent-Disposition: {}\r\n\r\n", self.boundary, content_disposition);
        let _ = self.storage.write(data);
        let _ = write!(&mut self.storage, "\r\n--{}\r\n", self.boundary);
    }
///Adds new field with jsut name.
Adds new field with jsut name.
Adds new field with jsut name .
pub fn add_field(&mut self, name: String, data: &[u8]) {
        let content_disposition = ContentDisposition::FormData(Some(name), Filename::new());
        let _ = write!(&mut self.storage, "--{}\r\nContent-Disposition: {}\r\n\r\n", self.boundary, content_disposition);
        let _ = self.storage.write(data);
        let _ = write!(&mut self.storage, "\r\n--{}\r\n", self.boundary);
    }
pub fn add_field ( & mut self , name : String , data : & [ u8 ] ) { let content_disposition = ContentDisposition :: FormData ( Some ( name ) , Filename :: new ( ) ) ; let _ = write ! ( mut self storage " \r \n \r \n \r \n " self boundary content_disposition ) ; let _ = self . storage . write ( data ) ; let _ = write ! ( mut self storage " \r \n \r \n " self boundary ) ; }
Adds new field with jsut name.
Adds new field with jsut name .
&mut self
name
String
data
&[u8]