diff options
author | Luca Casonato <hello@lcas.dev> | 2022-02-16 17:32:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 17:32:29 +0100 |
commit | 02c95d367e94f55f525646c2759558f52a493c69 (patch) | |
tree | 900be0a3bdf8b0df767afae568606265d20d5a11 /cli/dts | |
parent | be9c2fe267083a2995043ddf6228946f1244ab57 (diff) |
chore: make new TCP conn methods unstable (#13686)
Diffstat (limited to 'cli/dts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 15 |
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. * |