summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/http.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-07-30 13:34:52 +0100
committerGitHub <noreply@github.com>2024-07-30 14:34:52 +0200
commitc6ecf70a0963ce5cac67af97c55aa360a1d25c4b (patch)
tree7dca6e0e90d409562475ac28c54cfbe2436208fa /ext/node/polyfills/http.ts
parent191de7d72b3f5236292b9cba363968ee83116d35 (diff)
refactor(ext/node): create separate ops for node:http module (#24788)
This commit duplicates ops from "ext/fetch" to "ext/node" to kick off a bigger rewrite of "node:http". Most of duplication is temporary and will be removed as these ops evolve.
Diffstat (limited to 'ext/node/polyfills/http.ts')
-rw-r--r--ext/node/polyfills/http.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index 51d228d4e..f4126241e 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -5,8 +5,8 @@
import { core, primordials } from "ext:core/mod.js";
import {
- op_fetch_response_upgrade,
- op_fetch_send,
+ op_node_http_fetch_response_upgrade,
+ op_node_http_fetch_send,
op_node_http_request,
} from "ext:core/ops";
@@ -628,7 +628,7 @@ class ClientRequest extends OutgoingMessage {
(async () => {
try {
- const res = await op_fetch_send(this._req.requestRid);
+ const res = await op_node_http_fetch_send(this._req.requestRid);
if (this._req.cancelHandleRid !== null) {
core.tryClose(this._req.cancelHandleRid);
}
@@ -676,7 +676,7 @@ class ClientRequest extends OutgoingMessage {
throw new Error("not implemented CONNECT");
}
- const upgradeRid = await op_fetch_response_upgrade(
+ const upgradeRid = await op_node_http_fetch_response_upgrade(
res.responseRid,
);
assert(typeof res.remoteAddrIp !== "undefined");