(ct: string | null | undefined)
| 198 | normalizeContentType(ct).startsWith("multipart/form-data"); |
| 199 | |
| 200 | const isXmlContentType = (ct: string | null | undefined): boolean => { |
| 201 | const normalized = normalizeContentType(ct); |
| 202 | if (!normalized) return false; |
| 203 | return ( |
| 204 | normalized === "application/xml" || normalized === "text/xml" || normalized.endsWith("+xml") |
| 205 | ); |
| 206 | }; |
| 207 | |
| 208 | const isTextContentType = (ct: string | null | undefined): boolean => |
| 209 | normalizeContentType(ct).startsWith("text/"); |
no test coverage detected