1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/ext/fetch
Matt Mastracci e6e708e46c
refactor: use resourceForReadableStream for fetch (#20217)
Switch `ext/fetch` over to `resourceForReadableStream` to simplify and
unify implementation with `ext/serve`. This allows us to work in Rust
with resources only.

Two additional changes made to `resourceForReadableStream` were
required:

- Add an optional length to `resourceForReadableStream` which translates
to `size_hint`
 - Fix a bug where writing to a closed stream that was full would panic
2023-12-01 08:56:10 -07:00
..
20_headers.js fix(ext,runtime): add missing custom inspections (#21219) 2023-11-19 09:13:38 +01:00
21_formdata.js fix(ext,runtime): add missing custom inspections (#21219) 2023-11-19 09:13:38 +01:00
22_body.js fix(ext/fetch): clone second branch chunks in Body.clone() (#20057) 2023-08-15 09:21:02 +02:00
22_http_client.js refactor: Use ES modules for internal runtime code (#17648) 2023-02-07 20:22:46 +01:00
23_request.js fix(ext,runtime): add missing custom inspections (#21219) 2023-11-19 09:13:38 +01:00
23_response.js fix(ext,runtime): add missing custom inspections (#21219) 2023-11-19 09:13:38 +01:00
26_fetch.js refactor: use resourceForReadableStream for fetch (#20217) 2023-12-01 08:56:10 -07:00
27_eventsource.js fix(ext,runtime): add missing custom inspections (#21219) 2023-11-19 09:13:38 +01:00
Cargo.toml refactor: use resourceForReadableStream for fetch (#20217) 2023-12-01 08:56:10 -07:00
fs_fetch_handler.rs refactor(ext/fetch): Remove FetchRequestBodyResource from FetchHandler interface (#20100) 2023-08-09 10:47:47 -06:00
internal.d.ts refactor: remove remaining references to "flash" server (#18580) 2023-04-04 12:37:56 +02:00
lib.deno_fetch.d.ts fix(dts): make globals available on globalThis (#19438) 2023-07-03 14:36:55 -04:00
lib.rs refactor: use resourceForReadableStream for fetch (#20217) 2023-12-01 08:56:10 -07: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/