summaryrefslogtreecommitdiff
path: root/cli/tests/unit/fetch_test.ts
AgeCommit message (Collapse)Author
2021-09-17chore(tests): fix flaky fetchPostBodyTypedArray (#12104)David Sherret
2021-09-13fix(ext/fetch): Properly cancel upload stream when aborting (#11966)Nayeem Rahman
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-08-25feat(fetch): mTLS client certificates for fetch() (#11721)Sean Michael Wykes
This commit adds support for specifying client certificates when using fetch, by means of `Deno.createHttpClient`.
2021-08-11chore: move test files to testdata directory (#11601)David Sherret
2021-08-05refactor(cli/tests): remove unnecessary void return types (#11577)Leo K
2021-08-02Revert "fix(extensions/fetch): Add Origin header to outgoing requests for ↵Bartek Iwańczuk
fetch (#11557)" (#11565) This reverts commit f87aa44d94240327fb4ab1dc756d70f71247edb4.
2021-08-02fix(extensions/fetch): Add Origin header to outgoing requests for fetch (#11557)Feng Yu
2021-07-20tests: re-enable disabled Response.formData test (#11453)Luca Casonato
2021-07-05refactor: asynchronous blob backing store (#10969)Jimmy Wärting
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-07-05fix(fetch): OPTIONS should be allowed a non-null body (#11242)Craig Morten
2021-06-30fix: panic in request body streaming (#11191)Luca Casonato
2021-06-22fix(extensions/fetch): Filter out custom HOST headers (#11020)Vladimir Ivanov
This commit updates "fetch" API to ignore custom "Host" headers and return value provided by "reqwest".
2021-05-26fix(fetch): make prototype properties writable (#10769)Luca Casonato
2021-05-03fix(op_crates/fetch): check fetch() argument length (#10474)Anonymous
2021-04-29fix(op_crate/fetch): infinite loop on fill headers (#10406)William Perron
Fixes a pesky bug in the fetch implementation where if the init part is specified in `fetch` instead of the `Request` constructor, the fillHeaders function receives two references to the same object, causing it to append to the same list being iterated over.
2021-04-20chore: align fetch to spec (#10203)Luca Casonato
This commit aligns the `fetch` API and the `Request` / `Response` classes belonging to it to the spec. This commit enables all the relevant `fetch` WPT tests. Spec compliance is now at around 90%. Performance is essentially identical now (within 1% of 1.9.0).
2021-04-19chore: align `Headers` to spec (#10199)Luca Casonato
This commit aligns `Headers` to spec. It also removes the now unused 03_dom_iterable.js file. We now pass all relevant `Headers` WPT. We do not implement any sort of header filtering, as we are a server side runtime. This is likely not the most efficient implementation of `Headers` yet. It is however spec compliant. Once all the APIs in the `HTTP` hot loop are correct we can start optimizing them. It is likely that this commit reduces bench throughput temporarily.
2021-04-09chore: upgrade dependencies (#10094)Bartek Iwańczuk
This commit upgrades: - swc_ecmascript - swc_bundler - deno_doc - deno_lint - dprint-plugin-typescript
2021-04-06chore: deprecate Deno.Buffer and read/write utils (#9793)Luca Casonato
This commit marks the `Deno.Buffer` / `Deno.readAll` / `Deno.readAllSync` / `Deno.writeAll` / `Deno.writeAllSync` utils as deprecated, and schedules them for removal in Deno 2.0. These utilities are implemented in pure JS, so should not be part of the Deno namespace. These utilities are now available in std/io/buffer and std/io/util: https://github.com/denoland/deno_std/pull/808. This additionallty removes all internal dependance on Deno.Buffer.
2021-03-18fix: fallback to default UA and CA data for Deno.createHttpClient() (#9830)Aaron O'Mullan
2021-02-22fix(tests): fix fetchConnectionError test if port is in use (#9465)David DeSimone
Fixes #9379
2021-01-28chore: add jsdoc to 26_fetch.js and enable some fetch tests (#9305)Luca Casonato
2021-01-15refactor(op_crate/fetch): align streams to spec (#9103)Kitson Kelly
Fixes #8814
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10feat(fetch): req streaming + 0-copy resp streaming (#9036)Luca Casonato
* feat(fetch): req streaming + 0-copy resp streaming * lint * lint * fix test * rm test.js * explicitly use CancelHandle::default() * Apply review suggestions Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> * fix test * Merge remote-tracking branch 'origin/master' into fetch_real_streaming * fix test * retrigger ci Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2021-01-07feat: add --location=<href> and globalThis.location (#7369)Nayeem Rahman
2021-01-04BREAKING(unstable): remove CreateHttpClientOptions.caFile (#8928)Mo
2021-01-04chore: disable flaky test on Windows (#8987)Bartek Iwańczuk
2020-12-30fix(op_crates/fetch): correct regexp for fetch header (#8927)Rich Trott
Fix bug in regular expression and make the regular expression more strict. In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and not `/[\t\s]/`. For that, the backslash needs to be escaped in the string. Futhermore, `\t` is the tab character and is included in the special regexp value `\s` so is unnecessary. That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but there's no point in matching 0 or more space characters followed by 0 or one semi-colons as that will match no matter what follows `value`. To make it more strict, require one of space, semicolon, or end-of-string after value.
2020-12-30chore(cli/tests): fix typo in test failure message (#8935)Rich Trott
2020-12-26fix: fetch bad URL will not panic (#8884)Yosi Pramajaya
2020-12-22fix: implement ReadableStream fetch body handling (#8855)Luca Casonato
2020-12-19feat(unstable): support in memory certificate data for Deno.createHttpClient ↵yonatan ben avraham
(#8739)
2020-12-09fix(op_crates/fetch): support non-ascii response headers value (#8600)Jae-Heon Ji
2020-11-24fix(op_crates/fetch): `redirect: "manual"` fetch should return `type: ↵Luca Casonato
"default"` response (#8353)
2020-11-03build: migrate to dlint (#8176)Bartek Iwańczuk
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
2020-10-19fix(op_crates/fetch): Body.body should be stream of Uint8Array (#8030)Luca Casonato
2020-09-27feat(fmt): Sort named import and export specifiers (#7711)David Sherret
2020-09-08fix: Empty Response body returns 0-byte array (#7387)Casper Beyer
2020-08-05feat(cli): custom http client for fetch (#6918)Luca Casonato
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-07-13fix(cli/fetch): fix relative redirect (#6715)Marcos Casagrande
2020-07-07perf(cli/body): improve .arrayBuffer() speed (#6669)Marcos Casagrande
2020-07-05fix(cli/fetch): response constructor default properties (#6650)Marcos Casagrande
2020-07-04chore: port http_server.py to rust (#6364)Ryan Dahl
2020-06-25refactor(cli/tests/unit) to use assertThrows (#6459)Casper Beyer
2020-06-19build: lint cli/tests/unit using deno lint (#6327)Alan Gou
2020-06-08fix(cli/web/fetch): multipart/form-data request body support for binary ↵Marcos Casagrande
files (#5886)
2020-06-05Rename abbreviated assertions in std/testing (#6118)Casper Beyer
2020-06-03fix(fetch): Support 101 status code (#6059)Marcos Casagrande