(headers: Headers | { [k: string]: string })
| 81 | } |
| 82 | |
| 83 | function isJsonHttp(headers: Headers | { [k: string]: string }): boolean { |
| 84 | const contentType = headers instanceof Headers ? headers.get('Content-Type') : headers['Content-Type'] |
| 85 | return contentType?.includes('application/json') ?? false |
| 86 | } |
| 87 | |
| 88 | const trimStringValuesInObject = (obj: unknown): unknown => { |
| 89 | if (typeof obj === 'string') { |
no test coverage detected