diff options
author | Yosi Pramajaya <yosi.pramajaya@gmail.com> | 2022-01-31 22:36:54 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 16:36:54 +0100 |
commit | 3e566bb457663cec57602e564f73ded817e426a8 (patch) | |
tree | 7644ed068287f35060cf1a0c7c1827c629778df9 /ext/net/lib.deno_net.d.ts | |
parent | b7b6b9c9e5b84dea67ff6a2b691245f640644b2c (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.ts | 4 |
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 |