mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
API change: Deno.startHttp -> Deno.serveHttp (#10087)
This commit is contained in:
parent
cd0560210a
commit
c6e7a243d5
5 changed files with 20 additions and 18 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue