(ct: string | null | undefined)
| 184 | STREAMING_RESPONSE_CONTENT_TYPES.has(normalizeContentType(ct)); |
| 185 | |
| 186 | const isJsonContentType = (ct: string | null | undefined): boolean => { |
| 187 | const normalized = normalizeContentType(ct); |
| 188 | if (!normalized) return false; |
| 189 | return ( |
| 190 | normalized === "application/json" || normalized.includes("+json") || normalized.includes("json") |
| 191 | ); |
| 192 | }; |
| 193 | |
| 194 | const isFormUrlEncoded = (ct: string | null | undefined): boolean => |
| 195 | normalizeContentType(ct) === "application/x-www-form-urlencoded"; |
no test coverage detected