From 1a6ce29f3d11e5f0d0d022914e3f9fbcfa487294 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sun, 10 Jan 2021 20:54:29 +0100 Subject: 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 * fix test * Merge remote-tracking branch 'origin/master' into fetch_real_streaming * fix test * retrigger ci Co-authored-by: Ben Noordhuis --- cli/tests/077_fetch_empty.ts.out | 2 +- cli/tests/unit/fetch_test.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/tests/077_fetch_empty.ts.out b/cli/tests/077_fetch_empty.ts.out index 9dfccf10c..d94652bda 100644 --- a/cli/tests/077_fetch_empty.ts.out +++ b/cli/tests/077_fetch_empty.ts.out @@ -1,2 +1,2 @@ -[WILDCARD]error: Uncaught (in promise) URIError: relative URL without a base +[WILDCARD]error: Uncaught URIError: relative URL without a base [WILDCARD] 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); }, -- cgit v1.2.3