urlEncode

Encode a dict or sequence of two-element tuples into a URL query string.

If any values in the query arg are sequences and doseq is true, each sequence element is converted to a separate parameter.

If the query arg is a sequence of two-element tuples, the order of the parameters in the output will match the order of parameters in the input.

The components of a query arg may each be either a string or a bytes type.

The safe, encoding, and errors parameters are passed down to the function specified by quote_via (encoding and errors only if a component is a str).

  1. string urlEncode(const(string[string]) query, const(char)[] safe, string encoding, EncodingErrorHandling errors, QuoteFunction quote_via)
    @safe
    string
    urlEncode
    (
    const(string[string]) query
    ,
    const(char)[] safe = ""
    ,
    string encoding = "utf-8"
    ,,)
  2. string urlEncode(R query, const(char)[] safe, string encoding, EncodingErrorHandling errors, QuoteFunction quote_via)

Meta