* @param {Headers} headers
(headers)
| 111 | * @param {Headers} headers |
| 112 | */ |
| 113 | function isJSONContent(headers) { |
| 114 | // https://tools.ietf.org/html/rfc8259 |
| 115 | const contentType = String(headers.get('content-type') || '').toLowerCase() |
| 116 | return contentType.startsWith('application/json') |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Return a new object with all field names of the headers lower-cased. |
nothing calls this directly
no test coverage detected
searching dependent graphs…