From 02c95d367e94f55f525646c2759558f52a493c69 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 16 Feb 2022 17:32:29 +0100 Subject: chore: make new TCP conn methods unstable (#13686) --- cli/dts/lib.deno.unstable.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cli/dts/lib.deno.unstable.d.ts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index b8402cd9b..708eafe6a 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1057,6 +1057,21 @@ declare namespace Deno { alpnProtocols?: string[]; } + export interface Conn { + /** + * **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617. + * + * Enable/disable the use of Nagle's algorithm. Defaults to true. + */ + setNoDelay(nodelay?: boolean): void; + /** + * **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617. + * + * Enable/disable keep-alive functionality. + */ + setKeepAlive(keepalive?: boolean): void; + } + export interface TlsHandshakeInfo { /** **UNSTABLE**: new API, yet to be vetted. * -- cgit v1.2.3