diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-10 20:54:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 20:54:29 +0100 |
commit | 1a6ce29f3d11e5f0d0d022914e3f9fbcfa487294 (patch) | |
tree | 9e1940a9a7a7392e6818341eea67becfa26ebbfa /cli/tests/unit/fetch_test.ts | |
parent | 2c1f74402c00a2975cdaf9199b6487e5fd8175ba (diff) |
feat(fetch): req streaming + 0-copy resp streaming (#9036)
* 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>
Diffstat (limited to 'cli/tests/unit/fetch_test.ts')
-rw-r--r-- | cli/tests/unit/fetch_test.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts index 6945b2e2a..5d47c847e 100644 --- a/cli/tests/unit/fetch_test.ts +++ b/cli/tests/unit/fetch_test.ts @@ -1071,8 +1071,12 @@ unitTest( `user-agent: Deno/${Deno.version.deno}\r\n`, "accept-encoding: gzip, br\r\n", `host: ${addr}\r\n`, - `content-length: 11\r\n\r\n`, - "hello world", + `transfer-encoding: chunked\r\n\r\n`, + "6\r\n", + "hello \r\n", + "5\r\n", + "world\r\n", + "0\r\n\r\n", ].join(""); assertEquals(actual, expected); }, |