Skip to main content

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

ParameterTypeDescription
paramsJsonResource parameters.

Returns

string

Query string.