UrlEncoded

Handles coding of MIME "x-www-form-urlencoded". <p> This class handles the encoding and decoding for either the query string of a URL or the _content of a POST HTTP request. </p> <b>Notes</b> <p> The UTF-8 charset is assumed, unless otherwise defined by either passing a parameter or setting the "org.hunt.utils.UrlEncoding.charset" System property. </p> <p> The hashtable either contains string single values, vectors of string or arrays of Strings. </p> <p> This class is only partially synchronised. In particular, simple get operations are not protected from concurrent updates. </p>

Constructors

this
this(UrlEncodeStyle encodeStyle)
Undocumented in source.
this
this(string query, UrlEncodeStyle encodeStyle)
Undocumented in source.

Members

Functions

decode
void decode(string content, string charset)

Decoded parameters to Map.

encode
string encode()

Encode MultiMap with % encoding for UTF8 sequences.

encode
string encode(bool equalsForNullValue)

Encode MultiMap with % encoding.

encodeStyle
UrlEncodeStyle encodeStyle()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

decodeString
string decodeString(string encoded)

Decode string with % encoding. This method makes the assumption that the majority of calls will need no decoding.

decodeString
string decodeString(string encoded, size_t offset, size_t length)

Decode string with % encoding. This method makes the assumption that the majority of calls will need no decoding.

encodeString
string encodeString(string str, UrlEncodeStyle encodeStyle)

Perform URL encoding.

Variables

ENCODING
enum string ENCODING;
Undocumented in source.

See Also

Meta