summaryrefslogtreecommitdiff
path: root/cli/dts
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-02-16 17:32:29 +0100
committerGitHub <noreply@github.com>2022-02-16 17:32:29 +0100
commit02c95d367e94f55f525646c2759558f52a493c69 (patch)
tree900be0a3bdf8b0df767afae568606265d20d5a11 /cli/dts
parentbe9c2fe267083a2995043ddf6228946f1244ab57 (diff)
chore: make new TCP conn methods unstable (#13686)
Diffstat (limited to 'cli/dts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts15
1 files changed, 15 insertions, 0 deletions
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.
*