summaryrefslogtreecommitdiff
path: root/ext/fetch
AgeCommit message (Collapse)Author
2022-08-23docs: add permission tags to JSDocs (#15541)Kitson Kelly
Co-authored-by: Leo Kettmeir <crowlkats@toaxl.com>
2022-08-18feat(ext/flash): An optimized http/1.1 server (#15405)Divy Srivastava
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> Co-authored-by: crowlkats <crowlkats@toaxl.com> Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2022-08-17refactor(fetch/request): use callback for url and method (#15483)Leo Kettmeir
2022-08-17docs: add category tag for built-in APIs (#15480)Kitson Kelly
2022-08-11chore: forward v1.24.3 release commit to main (#15462)denobot
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-08-11perf(ops): Monomorphic sync op calls (#15337)Aapo Alasuutari
Welcome to better optimised op calls! Currently opSync is called with parameters of every type and count. This most definitely makes the call megamorphic. Additionally, it seems that spread params leads to V8 not being able to optimise the calls quite as well (apparently Fast Calls cannot be used with spread params). Monomorphising op calls should lead to some improved performance. Now that unwrapping of sync ops results is done on Rust side, this is pretty simple: ``` opSync("op_foo", param1, param2); // -> turns to ops.op_foo(param1, param2); ``` This means sync op calls are now just directly calling the native binding function. When V8 Fast API Calls are enabled, this will enable those to be called on the optimised path. Monomorphising async ops likely requires using callbacks and is left as an exercise to the reader.
2022-08-05feat(ext/fetch): Add socks proxy support (#15372)SahAssar
2022-08-05chore: forward v1.24.2 release commit to main (#15410)denobot
2022-07-29Forward 1.24.1 to main (#15333) (#15336)Colin Ihrig
1.24.1 (#15333) Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
2022-07-28fix(ext/fetch): resolve TODOs about WebIDL conversions in body init (#15312)Phosra
2022-07-211.24.0 (#15262)denobot
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-20chore: align some Web API type definitions to lib.dom.d.ts (#15219)ayame113
2022-07-12chore: forward v1.23.4 release commit to main (#15172)Colin Ihrig
1.23.4 (#15168) Co-authored-by: cjihrig <cjihrig@users.noreply.github.com> Co-authored-by: denobot <33910674+denobot@users.noreply.github.com> Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
2022-07-12fix(ext/http): reading headers with ongoing body reader (#15161)Divy Srivastava
2022-07-09refactor(ext) Decrease of StringPrototypeReplace recurrent usage (#15058)sevenwithawp
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-06perf(ext/http): skip `core.isProxy` check for default ResponseInit (#15077)Divy Srivastava
2022-07-051.23.3 (#15081)denobot
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-07-04perf(ext/http): lazy load headers (#15055)Divy Srivastava
2022-06-30chore: forward 1.23.2 to main (#15027)David Sherret
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-23v1.23.1 (#14954)Kayla Washburn
1.23.1 (#14952) Co-authored-by: aslilac <aslilac@users.noreply.github.com> Co-authored-by: Kayla Washburn <mckayla@hey.com> Co-authored-by: denobot <33910674+denobot@users.noreply.github.com> Co-authored-by: aslilac <aslilac@users.noreply.github.com>
2022-06-19fix(ext/fetch): add `accept-language` default header to fetch (#14882)Mark Ladyshau
2022-06-151.23.0 (#14878)denobot
* 1.23.0 * docs(Releases.md): update a few items for 1.23 * docs(Releases.md): revert bad formatting Co-authored-by: aslilac <aslilac@users.noreply.github.com> Co-authored-by: McKayla Washburn <mckayla@hey.com>
2022-06-15chore: upgrade various deps (#14876)Ryan Dahl
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-09chore: Forward v1.22.3 to main (#14835)Colin Ihrig
* 1.22.3 (#14832) * chore: pin swc versions to fix cargo publish Co-authored-by: denobot <33910674+denobot@users.noreply.github.com> Co-authored-by: cjihrig <cjihrig@users.noreply.github.com> Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-07fix(ext/fetch): remove deprecation of `URL` in deno `fetch` (#14769)Mark Ladyshau
2022-06-02chore: Forward v1.22.2 to main (#14785)Bartek Iwańczuk
2022-05-271.22.1Kitson Kelly
Co-authored-by: Kitson Kelly <me@kitsonkelly.com> Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
2022-05-181.22.0 (#14657)denobot
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-05-18fix: add types for `Response.json` (#14655)Luca Casonato
2022-05-13feat(ext/web): implement static `Response.json` (#14566)Luca Casonato
This commit adds support for the static `Response.json` method.
2022-05-121.21.3 (#14584)Bert Belder
2022-05-051.21.2 (#14508)Colin Ihrig
1.21.2
2022-05-05chore: update deps (#14416)Luca Casonato
2022-04-28Forward 1.21.1 (#14428)Leo Kettmeir
2022-04-23chore(ext/fetch): custom arity (#14198)Divy Srivastava
2022-04-22chore: bump crates (#14365)Luca Casonato
2022-04-22Reland "perf(http): optimize ReadableStreams backed by a resource" (#14346)Divy Srivastava
2022-04-201.21.0 (#14336)denobot
Co-authored-by: ry <ry@users.noreply.github.com> Co-authored-by: David Sherret <dsherret@gmail.com>
2022-04-21Revert various PRs related to "ext/http" (#14339)Bartek Iwańczuk
* Revert "feat(ext/http): stream auto resp body compression (#14325)" * Revert "core: introduce `resource.read_return` (#14331)" * Revert "perf(http): optimize `ReadableStream`s backed by a resource (#14284)"
2022-04-20core: introduce `resource.read_return` (#14331)Divy Srivastava
2022-04-14chore: forward v1.20.6 release commit to main (#14288)David Sherret
2022-04-07chore: forward v1.20.5 release commit to main (#14232)David Sherret
2022-04-02chore: update tokio, tokio-util and libc dependencies (#14174)Bartek Iwańczuk
2022-04-02experiment(serde_v8): derive_more enabled opaque wrappers (#14096)Aaron O'Mullan
2022-03-311.20.4 (#14168)David Sherret
2022-03-29chore(wasm): Don't await on the argument to `handleWasmStreaming` (#14000)Andreu Botella
`handleWasmStreaming` is the function that provides the binding with the `fetch` API needed for `WebAssembly.instantiateStreaming()` and `WebAssembly.compileStreaming()`. When I implemented it in #11200, I thought V8 was calling these functions with the argument of the `WebAssembly` streaming functions, without doing any resolving, and so `handleWasmStreaming` awaits for the parameter to resolve. However, as discovered in https://github.com/denoland/deno/issues/13917#issuecomment-1065805565, V8 does in fact resolve the parameter if it's a promise (and handles rejections arising from that). This change removes the `async` IIFE inside `handleWasmStreaming`, letting initial errors be handled synchronously (which will however not throw synchronously from the `WebAssembly` namespace functions). Awaiting is still necessary for reading the bytes of the response, though, and so there is an `async` IIFE for that.
2022-03-28fix(ext/fetch): extend deprecated fetch() overload with `string | Request` ↵Nayeem Rahman
(#14134)
2022-03-25chore: forward v1.20.3 release commit to main (#14121)Luca Casonato
2022-03-25fix: deprecate URL as the first arg of fetch (#14113)Yoshiya Hinosawa
2022-03-25chore(ext): fix typo in ext/webgpu, ext/fetch (#14106)apeltop