(ct: string | null | undefined)
| 244 | normalizeContentType(ct).startsWith("multipart/form-data"); |
| 245 | |
| 246 | const isXmlContentType = (ct: string | null | undefined): boolean => { |
| 247 | const normalized = normalizeContentType(ct); |
| 248 | if (!normalized) return false; |
| 249 | return ( |
| 250 | normalized === "application/xml" || normalized === "text/xml" || normalized.endsWith("+xml") |
| 251 | ); |
| 252 | }; |
| 253 | |
| 254 | const isTextContentType = (ct: string | null | undefined): boolean => |
| 255 | normalizeContentType(ct).startsWith("text/"); |
no test coverage detected