summaryrefslogtreecommitdiff
path: root/cli/tests/045_proxy_client.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-09-25 00:52:01 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-09-24 18:52:01 -0400
commit112ce0df1f9e36a57b520aa59dc1767ba0716bb0 (patch)
treefa667d29c9cb433f4d09396a36cab43d4421db6c /cli/tests/045_proxy_client.ts
parenta497f87b59a5271d89cf50063154c46c4e52c523 (diff)
test: add HTTP_PROXY tests (#2977)
Diffstat (limited to 'cli/tests/045_proxy_client.ts')
-rw-r--r--cli/tests/045_proxy_client.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/045_proxy_client.ts b/cli/tests/045_proxy_client.ts
new file mode 100644
index 000000000..4fb3db83b
--- /dev/null
+++ b/cli/tests/045_proxy_client.ts
@@ -0,0 +1,7 @@
+// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
+async function main(): Promise<void> {
+ const res = await fetch("http://deno.land/welcome.ts");
+ console.log(`Response http: ${await res.text()}`);
+}
+
+main();