Function parseFormData
Parses form data according to an HTTP Content-Type header.
Writes the form fields
into a key-value of type FormFields
, parsed from the
specified InputStream and using the corresponding Content-Type header. Parsing
is gracefully aborted if the Content-Type header is unrelated.
Prototype
bool parseFormData(
ref DictionaryList!(string,true,16L,false) fields,
ref vibe .utils .dictionarylist .__T14DictionaryListTS4vibe4inet7webform8FilePartVbi1Vmi0Vbi0Z .DictionaryList files,
string content_type,
InputStream body_reader,
ulong max_line_length
);
Parameters
Name | Description |
---|---|
fields | The key-value map to which form fields must be written |
files | The FileParts mapped to the corresponding key in which details on
transmitted files will be written to. |
content_type | The value of the Content-Type HTTP header. |
body_reader | A valid InputSteram data stream consumed by the parser. |
max_line_length | The byte-sized maximum length of lines used as boundary delimitors in Multi-Part forms. |
Authors
Sönke Ludwig, Jan Krüger
Copyright
© 2012-2014 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.