summaryrefslogtreecommitdiff
path: root/cli/tests/unit/fetch_test.ts
AgeCommit message (Collapse)Author
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
2020-06-02fix: Better use of @ts-expect-error (#6038)Kitson Kelly
2020-06-01fix(cli/web): Body.bodyUsed should use IsReadableStreamDisturbedMarcos Casagrande
2020-06-01fix(cli/js/web): formData parser for binary files (#6015)Marcos Casagrande
2020-05-31fix(cli/fetch): set null body for null-body status (#5980)Marcos Casagrande
2020-05-31fix(fetch): network error on multiple redirects (#5985)Marcos Casagrande
2020-05-30test to check that resource handle is closed after stream is cancelled (#5956)Marcos Casagrande
2020-05-28formData: set default filename for Blob to <blob> (#5907)Marcos Casagrande
2020-05-27test(clie/web/fetch): Re-enable tests (#5904)Marcos Casagrande
2020-05-26Use ts-expect-error instead of ts-ignore. (#5869)Kitson Kelly
2020-05-25Add more tests for fetch response body (#5852)Marcos Casagrande
2020-05-25fix(cli/web/fetch): Make Response constructor standard (#5787)Marcos Casagrande
2020-05-25fix: Allow ArrayBuffer as Fetch request body (#5831)Marcos Casagrande
2020-05-24Re-enable several fetch tests (#5803)Andrew Mitchell
2020-05-20move js unit tests to cli/tests (#5678)Ryan Dahl