1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/ext/fetch
Luca Casonato 43b6390629
fix(ext/fetch): handle errors in req body stream (#17081)
Right now an error in a request body stream causes an uncatchable
global promise rejection. This PR fixes this to instead propagate the
error correctly into the promise returned from `fetch`.

It additionally fixes errored readable stream bodies being treated as
successfully completed bodies by Rust.
2022-12-19 12:49:00 +01:00
..
01_fetch_util.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
20_headers.js fix(ext/fetch): fix illegal header regex (#16236) 2022-10-10 12:06:50 -04:00
21_formdata.js fix(ext/fetch): support empty formdata (#16165) 2022-10-07 13:59:30 +02:00
22_body.js fix(ext/fetch): reject immediately on aborted signal (#16190) 2022-10-08 16:08:47 -04:00
22_http_client.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
23_request.js fix(ext/fetch): new Request should soft clone (#16869) 2022-12-06 09:39:04 +01:00
23_response.js fix(ext/response): make error, json, redirect enumerable (#16497) 2022-11-10 00:31:14 +01:00
26_fetch.js fix(ext/fetch): handle errors in req body stream (#17081) 2022-12-19 12:49:00 +01:00
byte_stream.rs fix(ext/fetch): handle errors in req body stream (#17081) 2022-12-19 12:49:00 +01:00
Cargo.toml chore: forward v1.29.1 release commit to main (#17067) 2022-12-15 13:30:55 -05:00
fs_fetch_handler.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
internal.d.ts chore: update copyright year (#13434) 2022-01-20 16:10:16 +09:00
lib.deno_fetch.d.ts docs: add permission tags to JSDocs (#15541) 2022-08-23 10:57:01 +10:00
lib.rs fix(ext/fetch): handle errors in req body stream (#17081) 2022-12-19 12:49:00 +01:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00

deno_fetch

This crate implements the Fetch API.

Spec: https://fetch.spec.whatwg.org/