(form: FormData)
| 201 | }; |
| 202 | |
| 203 | const serializeNativeFormDataBody = (form: FormData) => { |
| 204 | const response = new globalThis.Response(form); |
| 205 | return { |
| 206 | body: response.body!, |
| 207 | contentType: response.headers.get('content-type') ?? 'multipart/form-data', |
| 208 | }; |
| 209 | }; |
| 210 | |
| 211 | // A body is replayable only if iterating it again restarts from the beginning. |
| 212 | // Node streams, Web `ReadableStream`s, generators, and self-iterating (one-shot) iterators all yield their data only once, so they cannot be replayed on a redirect. |
no test coverage detected
searching dependent graphs…