summaryrefslogtreecommitdiff
path: root/cli/bench/deno_http_native.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-04-09 11:54:27 -0400
committerGitHub <noreply@github.com>2021-04-09 11:54:27 -0400
commitc6e7a243d524417fe77c4799a2bcc1b3db1bf01a (patch)
tree7a0a88bf36c6f4cdc8ddfe4beb7e3c917b8a8352 /cli/bench/deno_http_native.js
parentcd0560210aa0ac9dc9772cdddcb1c5a59cef1815 (diff)
API change: Deno.startHttp -> Deno.serveHttp (#10087)
Diffstat (limited to 'cli/bench/deno_http_native.js')
-rw-r--r--cli/bench/deno_http_native.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/deno_http_native.js b/cli/bench/deno_http_native.js
index fa779be21..57c19b4b9 100644
--- a/cli/bench/deno_http_native.js
+++ b/cli/bench/deno_http_native.js
@@ -9,7 +9,7 @@ const body = Deno.core.encode("Hello World");
for await (const conn of listener) {
(async () => {
- const requests = Deno.startHttp(conn);
+ const requests = Deno.serveHttp(conn);
for await (const { respondWith } of requests) {
respondWith(new Response(body));
}