defaultParamEncoder()
function defaultParamEncoder(params): string
Encode params for external resource request.
Produces a query string consisting of a leading ?
followed by the encoding of the params
given by URLSearchParams.toString when params
is an object and otherwise a single key-value pair params=JSON.stringify(params)
.
Parameters
Parameter | Type | Description |
---|---|---|
params | Json | Resource parameters. |
Returns
string
Query string.