If the Content-Type
header is application/json
, the data is converted to a JSON string.
If the Content-Type
header is application/x-www-form-urlencoded
, the data is converted to
a URLSearchParams
object.
In all other cases, the data is returned unmodified.
Data to transform
A payload appropriate for the specified Content-Type
header
Generated using TypeDoc
Configuration parameters common to Commerce SDK clients