We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rid
1 parent 6fc1ca1 commit e671808Copy full SHA for e671808
crates/sb_core/js/http.js
@@ -1,6 +1,8 @@
1
import { HttpConn } from 'ext:deno_http/01_http.js';
2
import { RequestPrototype } from 'ext:deno_fetch/23_request.js';
3
import { core, primordials } from "ext:core/mod.js";
4
+
5
+const { internalRidSymbol } = core;
6
const { ObjectPrototypeIsPrototypeOf } = primordials;
7
8
const HttpConnPrototypeNextRequest = HttpConn.prototype.nextRequest;
@@ -40,7 +42,7 @@ function internalServerError() {
40
42
}
41
43
44
function serveHttp(conn) {
- const [connRid, watcherRid] = ops.op_http_start(conn.rid);
45
+ const [connRid, watcherRid] = ops.op_http_start(conn[internalRidSymbol]);
46
const httpConn = new HttpConn(connRid, conn.remoteAddr, conn.localAddr);
47
48
httpConn.nextRequest = async () => {
0 commit comments