pub fn read_multipart_body<S: Read>(
stream: &mut S,
) -> Result<Vec<Node>, Error>
Parse a MIME
multipart/* from a
Readable stream into a
files to disk and keeping the rest in memory. Recursive
multipart/* parts will are
parsed as well and returned within a
always_use_files is true, all parts will be streamed to files. If false, only parts
ContentDisposition header set to
Attachment or otherwise containing a
parameter will be streamed to files.
It is presumed that you have the
Headers already and the stream starts at the body.
If the headers are still in the stream, use