vibe.inet.webform

Contains HTML/urlencoded form parsing and construction routines.

Members

Aliases

FilePartFormFields
alias FilePartFormFields = DictionaryList!(FilePart, true, 0)
Undocumented in source.
FormFields
alias FormFields = DictionaryList!(string, true, 16)
Undocumented in source.

Functions

formEncode
void formEncode(R dst, T map, char sep)

Encodes a Key-Value map into a form URL encoded string.

formEncode
string formEncode(T map, char sep)

Encodes a Key-Value map into a form URL encoded string.

parseFormData
bool parseFormData(FormFields fields, FilePartFormFields files, string content_type, InputStream body_reader, size_t max_line_length)

Parses form data according to an HTTP Content-Type header.

parseMultiPartForm
void parseMultiPartForm(FormFields fields, FilePartFormFields files, string content_type, InputStream body_reader, size_t max_line_length)

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

parseURLEncodedForm
void parseURLEncodedForm(string str, FormFields params)

Parses a URL encoded form and stores the key/value pairs.

urlEncode
void urlEncode(R dst, T map)

Writes to the OutputRange an URL encoded string as specified in RFC 3986 section 2

urlEncode
string urlEncode(T map)

Returns an URL encoded string as specified in RFC 3986 section 2

Structs

FilePart
struct FilePart

Single part of a multipart form.

Templates

isFormMap
template isFormMap(T)

Tests if a given type is suitable for storing a web form.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig, Jan Krüger