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