MultipartFormParser

MultipartFormParser <p> Handle a MultipartForm Mime input stream, breaking it up on the boundary into files and strings.

@see <a href="https://tools.ietf.org/html/rfc7578">https://tools.ietf.org/html/rfc7578</a>

Constructors

this
this(InputStream input, string contentType, MultipartOptions config, string contextTmpDir)

@param input Request input stream @param contentType Content-Type header @param config MultipartOptions @param contextTmpDir tempdir

Members

Aliases

MultiPart
deprecated alias MultiPart = MultipartForm
Undocumented in source.

Classes

Handler
class Handler
Undocumented in source.

Functions

deleteParts
void deleteParts()

Delete any tmp storage for parts, and clear out the parts list.

getPart
Part getPart(string name)

Get the named Part.

getParts
Part[] getParts()

Parse, if necessary, the multipart data and return the list of Parts.

isDeleteOnExit
bool isDeleteOnExit()
Undocumented in source. Be warned that the author may not have intended to support it.
isEmpty
bool isEmpty()

@return whether the list of parsed parts is empty

parse
void parse()

Parse, if necessary, the multipart stream.

setDeleteOnExit
void setDeleteOnExit(bool deleteOnExit)
Undocumented in source. Be warned that the author may not have intended to support it.
throwIfError
void throwIfError()

Throws an exception if one has been latched.

Static functions

EMPTY_MAP
MultiMap!(Part) EMPTY_MAP()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_config
MultipartOptions _config;
Undocumented in source.
_contentType
string _contentType;
Undocumented in source.
_contextTmpDir
string _contextTmpDir;
Undocumented in source.
_deleteOnExit
bool _deleteOnExit;
Undocumented in source.
_err
Exception _err;
Undocumented in source.
_in
InputStream _in;
Undocumented in source.
_parsed
bool _parsed;
Undocumented in source.
_parts
MultiMap!(Part) _parts;
Undocumented in source.
_tmpDir
string _tmpDir;
Undocumented in source.

Meta