summaryrefslogtreecommitdiff
path: root/runtime/js/40_http.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 /runtime/js/40_http.js
parentcd0560210aa0ac9dc9772cdddcb1c5a59cef1815 (diff)
API change: Deno.startHttp -> Deno.serveHttp (#10087)
Diffstat (limited to 'runtime/js/40_http.js')
-rw-r--r--runtime/js/40_http.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js
index cfb015edd..dd6c99a2d 100644
--- a/runtime/js/40_http.js
+++ b/runtime/js/40_http.js
@@ -18,7 +18,7 @@
return entries;
}
- function startHttp(conn) {
+ function serveHttp(conn) {
const rid = Deno.core.jsonOpSync("op_http_start", conn.rid);
return new HttpConn(rid);
}
@@ -205,6 +205,6 @@
}
window.__bootstrap.http = {
- startHttp,
+ serveHttp,
};
})(this);