Function mime_multipart::parse_multipart [] [src]

pub fn parse_multipart<S: Read>(stream: &mut S, headers: &Headers, always_use_files: bool) -> Result<Vec<Node>, Error>

Parse a MIME multipart/* into a Vec of Nodes. You must pass in a Readable stream for reading the body, as well as the Headers separately. If always_use_files is true, all parts will be streamed to files. If false, only parts with a Filename ContentDisposition header will be streamed to files. Recursive multipart/* parts will are parsed as well and returned within a Node::Multipart variant.