From 7abd72a80f0aafe071ad7d298b48e0da741cc9f3 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Mon, 19 Feb 2024 01:27:06 +1100 Subject: BREAKING(unstable): remove `Deno.HttpClient.rid` (#22075) As part of ongoing works to make `rid` private. --------- Co-authored-by: Matt Mastracci --- ext/node/polyfills/http.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/node') 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); } -- cgit v1.2.3