Crate mime_multipart [] [src]

Reexports

pub use error::Error;

Modules

error

Structs

FilePart

An uploaded file that was received as part of multipart/* parsing. Files are streamed to disk to conserve memory (files are potentially very large)

Part

A multipart part which is not a file (stored in memory)

Enums

Node

A multipart part which could be either a file, in memory, or another multipart container containing nested parts.

Functions

get_multipart_boundary

Get the multipart/* boundary string from hyper::Headers

parse_multipart

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.