()
| 95 | method: "POST", |
| 96 | body, |
| 97 | get duplex() { |
| 98 | duplexAccessed = true |
| 99 | return "half" |
| 100 | } |
| 101 | } as globalThis.RequestInit) |
| 102 | // Bun and Deno preserve the stream without reading the duplex option. |
| 103 | return (duplexAccessed || request.body === body) && !request.headers.has("Content-Type") |