summaryrefslogtreecommitdiff
path: root/std/examples/curl.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/curl.ts')
-rw-r--r--std/examples/curl.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/std/examples/curl.ts b/std/examples/curl.ts
deleted file mode 100644
index 2ed194446..000000000
--- a/std/examples/curl.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-const url_ = Deno.args[0];
-const res = await fetch(url_);
-
-// TODO(ry) Re-enable streaming in this example.
-// Originally we did: await Deno.copy(res.body, Deno.stdout);
-// But maybe more JS-y would be: res.pipeTo(Deno.stdout);
-
-const body = new Uint8Array(await res.arrayBuffer());
-await Deno.stdout.write(body);