* Convert the code FormDataEncoderStream to a code Request to send to a server. * * @param input The URL or RequestInfo to send the request to. * @param init Optional request initialization options. * @returns The code Request containing the encoded form data. *
(input: RequestInfo | URL, init?: RequestInit)
| 267 | * ``` |
| 268 | */ |
| 269 | toRequest(input: RequestInfo | URL, init?: RequestInit): Request { |
| 270 | init ??= {}; |
| 271 | init.headers = { ...init.headers, "Content-Type": this.#contentType }; |
| 272 | init.body = this.#readable; |
| 273 | return new Request(input, init); |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * Create a {@linkcode FormDataEncoderStream} from a |
no outgoing calls
no test coverage detected