(ct: string | null | undefined)
| 230 | STREAMING_RESPONSE_CONTENT_TYPES.has(normalizeContentType(ct)); |
| 231 | |
| 232 | const isJsonContentType = (ct: string | null | undefined): boolean => { |
| 233 | const normalized = normalizeContentType(ct); |
| 234 | if (!normalized) return false; |
| 235 | return ( |
| 236 | normalized === "application/json" || normalized.includes("+json") || normalized.includes("json") |
| 237 | ); |
| 238 | }; |
| 239 | |
| 240 | const isFormUrlEncoded = (ct: string | null | undefined): boolean => |
| 241 | normalizeContentType(ct) === "application/x-www-form-urlencoded"; |
no test coverage detected