(ct: string | null | undefined)
| 191 | STREAMING_RESPONSE_CONTENT_TYPES.has(normalizeContentType(ct)); |
| 192 | |
| 193 | const isJsonContentType = (ct: string | null | undefined): boolean => { |
| 194 | const normalized = normalizeContentType(ct); |
| 195 | if (!normalized) return false; |
| 196 | return ( |
| 197 | normalized === "application/json" || normalized.includes("+json") || normalized.includes("json") |
| 198 | ); |
| 199 | }; |
| 200 | |
| 201 | const isFormUrlEncoded = (ct: string | null | undefined): boolean => |
| 202 | normalizeContentType(ct) === "application/x-www-form-urlencoded"; |
no test coverage detected