diff options
Diffstat (limited to 'doc/api/http.md')
-rw-r--r-- | doc/api/http.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index 543a25dfdf8..fd15d16074a 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1453,6 +1453,23 @@ added: v0.1.90 Stops the server from accepting new connections. See [`net.Server.close()`][]. +### `server.closeAllConnections()` + +<!-- YAML +added: REPLACEME +--> + +Closes all connections connected to this server. + +### `server.closeIdleConnections()` + +<!-- YAML +added: REPLACEME +--> + +Closes all connections connected to this server which are not sending a request +or waiting for a response. + ### `server.headersTimeout` <!-- YAML |