Crate mime_multipart [] [src]

Reexports

pub use error::Error;

Modules

error

Structs

FilePart

A file that is to be inserted into a multipart/* or alternatively an uploaded file that was received as part of multipart/* parsing.

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

generate_boundary

Generate a valid multipart boundary, statistically unlikely to be found within the content of the parts.

get_multipart_boundary

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

parse_multipart

Parse a MIME multipart/* from a Readable stream into a Vec of Nodes, streaming files to disk and keeping the rest in memory. Recursive multipart/* parts will are parsed as well and returned within a Node::Multipart variant.

parse_multipart_body

Parse a MIME multipart/* from a Readable stream into a Vec of Nodes, streaming files to disk and keeping the rest in memory. Recursive multipart/* parts will are parsed as well and returned within a Node::Multipart variant.

stream_multipart

Stream a multipart body to the output stream given, made up of the parts given. Headers are NOT included in this stream, caller must deal with those prior to calling stream_multipart().