diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-04-09 11:54:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 11:54:27 -0400 |
commit | c6e7a243d524417fe77c4799a2bcc1b3db1bf01a (patch) | |
tree | 7a0a88bf36c6f4cdc8ddfe4beb7e3c917b8a8352 /runtime/js | |
parent | cd0560210aa0ac9dc9772cdddcb1c5a59cef1815 (diff) |
API change: Deno.startHttp -> Deno.serveHttp (#10087)
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/40_http.js | 4 | ||||
-rw-r--r-- | runtime/js/90_deno_ns.js | 2 |
2 files changed, 3 insertions, 3 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); diff --git a/runtime/js/90_deno_ns.js b/runtime/js/90_deno_ns.js index 84eb69ef0..c240d1ea2 100644 --- a/runtime/js/90_deno_ns.js +++ b/runtime/js/90_deno_ns.js @@ -120,7 +120,7 @@ listen: __bootstrap.netUnstable.listen, connect: __bootstrap.netUnstable.connect, listenDatagram: __bootstrap.netUnstable.listenDatagram, - startHttp: __bootstrap.http.startHttp, + serveHttp: __bootstrap.http.serveHttp, startTls: __bootstrap.tls.startTls, fstatSync: __bootstrap.fs.fstatSync, fstat: __bootstrap.fs.fstat, |