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