module Url:sig
..end
The following two functions perform the '%'-substitution for characters that may otherwise be interpreted as metacharacters.
According to: RFC 1738, RFC 1630
Option plus
: This option has been added because there are some
implementations that do not map ' ' to '+', for example Javascript's
escape
function. The default is true
because this is the RFC-
compliant definition.
val decode : ?plus:bool -> string -> string
plus
: Whether '+' is converted to space. The default
is true. If false, '+' is returned as it is.val encode : ?plus:bool -> string -> string
plus
: Whether spaces are converted to '+'. The default
is true. If false, spaces are converted to "%20", and
only %xx sequences are produced.
The following two functions create and analyze URL-encoded parameters.
Format: name1=val1&name2=val2&...
val mk_url_encoded_parameters : (string * string) list -> string
val dest_url_encoded_parameters : string -> (string * string) list