@nymproject/mix-fetch • Docs
@nymproject/mix-fetch / ResponseBodyConfigMap
Interface: ResponseBodyConfigMap
Properties
uint8array?
optionaluint8array: (string|RegExp)[]
Set the response Content-Types to decode as uint8array.
Source
types.ts:49 (opens in a new tab)
json?
optionaljson: (string|RegExp)[]
Set the response Content-Types to decode with the json() response body method.
Source
types.ts:54 (opens in a new tab)
text?
optionaltext: (string|RegExp)[]
Set the response Content-Types to decode with the text() response body method.
Source
types.ts:59 (opens in a new tab)
formData?
optionalformData: (string|RegExp)[]
Set the response Content-Types to decode with the formData() response body method.
Source
types.ts:64 (opens in a new tab)
blob?
optionalblob: (string|RegExp)[]
Set the response Content-Types to decode with the blob() response body method.
Source
types.ts:69 (opens in a new tab)
fallback?
optionalfallback:ResponseBodyMethod
Set this to the default fallback method. Set to undefined if you want to ignore unknown types.