parseMultiPartForm

Parses a form in "multipart/form-data" format.

If any files are contained in the form, they are written to temporary files using vibe.core.file.createTempFile and their details returned in the files field.

void
parseMultiPartForm
(
InputStream
)
if (
isInputStream!InputStream
)

Parameters

fields FormFields

The key-value map to which form fields must be written

files FilePartFormFields

The FileParts mapped to the corresponding key in which details on transmitted files will be written to.

content_type string

The value of the Content-Type HTTP header.

body_reader InputStream

A valid InputSteram data stream consumed by the parser.

max_line_length size_t

The byte-sized maximum length of lines used as boundary delimitors in Multi-Part forms.

Meta