DeserializationPolicyOptions interface
Options to configure API response deserialization.
Properties
expected |
Configures the expected content types for the deserialization of JSON and XML response bodies. |
parseXML | A function that is able to parse XML. Required for XML support. |
serializer |
Configures behavior of xml parser and builder. |
Property Details
expectedContentTypes
Configures the expected content types for the deserialization of JSON and XML response bodies.
expectedContentTypes?: DeserializationContentTypes
Property Value
parseXML
A function that is able to parse XML. Required for XML support.
parseXML?: (str: string, opts?: XmlOptions) => Promise<any>
Property Value
(str: string, opts?: XmlOptions) => Promise<any>
serializerOptions
Configures behavior of xml parser and builder.
serializerOptions?: SerializerOptions