urlencode
A version of Python's urllib.parse.urlencode() function that can operate on MultiValueDict and non-string values.
def urlencode(
query: Mapping or Sequence,
doseq: boolean = False
) - > string
A version of Python's urllib.parse.urlencode() function that can operate on MultiValueDict and non-string values.
Parameters
| Name | Type | Description |
|---|---|---|
| query | Mapping or Sequence | The data to be encoded, which can be a dictionary, a MultiValueDict, or a sequence of two-element tuples. |
| doseq | boolean = False | If True, individual elements of iterable values are encoded as separate parameters sharing the same key. |
Returns
| Type | Description |
|---|---|
string | A URL-encoded string suitable for use as a query string in a URL. |