summaryrefslogtreecommitdiff
path: root/ext/fetch/22_http_client.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-01-11 07:37:25 +0900
committerGitHub <noreply@github.com>2024-01-10 15:37:25 -0700
commit515a34b4de222e35c7ade1b92614d746e73d4c2e (patch)
tree8284201fc826a33f12597959a8a8be14e0f524bd /ext/fetch/22_http_client.js
parentd4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff)
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'ext/fetch/22_http_client.js')
-rw-r--r--ext/fetch/22_http_client.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/fetch/22_http_client.js b/ext/fetch/22_http_client.js
index dd5b99bfe..b6945e674 100644
--- a/ext/fetch/22_http_client.js
+++ b/ext/fetch/22_http_client.js
@@ -11,8 +11,11 @@
/// <reference lib="esnext" />
import { core } from "ext:core/mod.js";
-const ops = core.ops;
+
import { SymbolDispose } from "ext:deno_web/00_infra.js";
+const {
+ op_fetch_custom_client,
+} = core.ensureFastOps();
/**
* @param {Deno.CreateHttpClientOptions} options
@@ -21,7 +24,7 @@ import { SymbolDispose } from "ext:deno_web/00_infra.js";
function createHttpClient(options) {
options.caCerts ??= [];
return new HttpClient(
- ops.op_fetch_custom_client(
+ op_fetch_custom_client(
options,
),
);