diff --git a/doc/api/http.md b/doc/api/http.md index b6fa32a3c0b4cc..5451cb0ccf6f96 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1667,6 +1667,17 @@ to 8.0.0, which did not have a keep-alive timeout. The socket timeout logic is set up on connection, so changing this value only affects new connections to the server, not any existing connections. +### `server[Symbol.asyncDispose]()` + + + +> Stability: 1 - Experimental + +Calls [`server.close()`][] and returns a promise that fulfills when the +server has closed. + ## Class: `http.ServerResponse`