From c6ecf70a0963ce5cac67af97c55aa360a1d25c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 30 Jul 2024 13:34:52 +0100 Subject: 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. --- ext/node/polyfills/http.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/node/polyfills/http.ts') 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"); -- cgit v1.2.3