From 3e03865d89e3abf0755e6d3b8305632a5319fdfe Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sun, 21 May 2023 03:43:54 +0200 Subject: feat(unstable): add more options to Deno.createHttpClient (#17385) --- cli/tsc/dts/lib.deno.unstable.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cli/tsc') diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 70d7ef7c4..8681cbd9b 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -821,6 +821,15 @@ declare namespace Deno { certChain?: string; /** PEM formatted (RSA or PKCS8) private key of client certificate. */ privateKey?: string; + /** Sets the maximum numer of idle connections per host allowed in the pool. */ + poolMaxIdlePerHost?: number; + /** Set an optional timeout for idle sockets being kept-alive. + * Set to false to disable the timeout. */ + poolIdleTimeout?: number | false; + /** Whether HTTP/1.1 is allowed or not. */ + http1?: boolean; + /** Whether HTTP/2 is allowed or not. */ + http2?: boolean; } /** **UNSTABLE**: New API, yet to be vetted. -- cgit v1.2.3