mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
BREAKING(unstable): remove Deno.HttpClient.rid
(#22075)
As part of ongoing works to make `rid` private. --------- Co-authored-by: Matt Mastracci <matthew@mastracci.com>
This commit is contained in:
parent
3a243c8272
commit
7abd72a80f
4 changed files with 21 additions and 10 deletions
|
@ -9,7 +9,7 @@
|
|||
/// <reference path="./lib.deno_fetch.d.ts" />
|
||||
/// <reference lib="esnext" />
|
||||
|
||||
import { primordials } from "ext:core/mod.js";
|
||||
import { core, primordials } from "ext:core/mod.js";
|
||||
const {
|
||||
ArrayPrototypeMap,
|
||||
ArrayPrototypeSlice,
|
||||
|
@ -45,6 +45,8 @@ import {
|
|||
import { HttpClientPrototype } from "ext:deno_fetch/22_http_client.js";
|
||||
import * as abortSignal from "ext:deno_web/03_abort_signal.js";
|
||||
|
||||
const { internalRidSymbol } = core;
|
||||
|
||||
const _request = Symbol("request");
|
||||
const _headers = Symbol("headers");
|
||||
const _getHeaders = Symbol("get headers");
|
||||
|
@ -355,7 +357,7 @@ class Request {
|
|||
"Argument 2",
|
||||
);
|
||||
}
|
||||
request.clientRid = init.client?.rid ?? null;
|
||||
request.clientRid = init.client?.[internalRidSymbol] ?? null;
|
||||
}
|
||||
|
||||
// 28.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue