R
fn

detectResponseType

v0.0.1

Infers the response body parsing strategy from a Content-Type header value

Signature

ts
export function detectResponseType(contentType = ''): ResponseType{ ... }

Parameters

ParameterTypeDescription
contentType?stringValue of the Content-Type response header

Returns

ResponseType