fn
detectResponseType
v0.0.1Infers the response body parsing strategy from a Content-Type header value
Signature
ts
export function detectResponseType(contentType = ''): ResponseType{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
contentType? | string | Value of the Content-Type response header |
Returns
ResponseType