diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-02-19 01:27:06 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 07:27:06 -0700 |
commit | 7abd72a80f0aafe071ad7d298b48e0da741cc9f3 (patch) | |
tree | f0791793f15667b18dc2644c242d0905190e27d1 /ext/node/polyfills/http.ts | |
parent | 3a243c827238b93c3f09a38e3b5e90e2ccfc15a1 (diff) |
BREAKING(unstable): remove `Deno.HttpClient.rid` (#22075)
As part of ongoing works to make `rid` private.
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/node/polyfills/http.ts')
-rw-r--r-- | ext/node/polyfills/http.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts index 0c6501d87..28b7f15b2 100644 --- a/ext/node/polyfills/http.ts +++ b/ext/node/polyfills/http.ts @@ -65,6 +65,8 @@ import { clearTimeout as webClearTimeout } from "ext:deno_web/02_timers.js"; import { resourceForReadableStream } from "ext:deno_web/06_streams.js"; import { TcpConn } from "ext:deno_net/01_net.js"; +const { internalRidSymbol } = core; + enum STATUS_CODES { /** RFC 7231, 6.2.1 */ Continue = 100, @@ -616,7 +618,7 @@ class ClientRequest extends OutgoingMessage { this.method, url, headers, - client.rid, + client[internalRidSymbol], this._bodyWriteRid, ); } @@ -802,7 +804,7 @@ class ClientRequest extends OutgoingMessage { } this.destroyed = true; - const rid = this._client?.rid; + const rid = this._client?.[internalRidSymbol]; if (rid) { core.tryClose(rid); } |