(
&mut self,
name: &str,
content_type: &Mime,
f: F,
)
| 59 | } |
| 60 | |
| 61 | pub fn write_field_with<F>( |
| 62 | &mut self, |
| 63 | name: &str, |
| 64 | content_type: &Mime, |
| 65 | f: F, |
| 66 | ) -> std::io::Result<&mut Self> |
| 67 | where |
| 68 | F: Fn(&mut W) -> std::io::Result<()>, |
| 69 | { |
| 70 | self.write_field_header(name, content_type)?; |
| 71 | f(&mut self.inner)?; |
| 72 | self.inner.write_all(b"\r\n")?; |
| 73 | Ok(self) |
| 74 | } |
| 75 | |
| 76 | pub fn write_field<R: std::io::Read>( |
| 77 | &mut self, |
nothing calls this directly
no test coverage detected