summaryrefslogtreecommitdiff
path: root/ext/net/lib.deno_net.d.ts
diff options
context:
space:
mode:
authorYosi Pramajaya <yosi.pramajaya@gmail.com>2022-01-31 22:36:54 +0700
committerGitHub <noreply@github.com>2022-01-31 16:36:54 +0100
commit3e566bb457663cec57602e564f73ded817e426a8 (patch)
tree7644ed068287f35060cf1a0c7c1827c629778df9 /ext/net/lib.deno_net.d.ts
parentb7b6b9c9e5b84dea67ff6a2b691245f640644b2c (diff)
feat(ext/net): Add Conn.setNoDelay and Conn.setKeepAlive (#13103)
Diffstat (limited to 'ext/net/lib.deno_net.d.ts')
-rw-r--r--ext/net/lib.deno_net.d.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts
index c00cc1e44..ebed8ac87 100644
--- a/ext/net/lib.deno_net.d.ts
+++ b/ext/net/lib.deno_net.d.ts
@@ -50,6 +50,10 @@ declare namespace Deno {
/** Shuts down (`shutdown(2)`) the write side of the connection. Most
* callers should just use `close()`. */
closeWrite(): Promise<void>;
+ /** Enable/disable the use of Nagle's algorithm. Defaults to true */
+ setNoDelay(nodelay?: boolean): void;
+ /** Enable/disable keep-alive functionality */
+ setKeepAlive(keepalive?: boolean): void;
}
// deno-lint-ignore no-empty-interface