Skip to content

Commit

Permalink
[Flow][lib/node] Add closeAllConnections, closeIdleConnections to htt…
Browse files Browse the repository at this point in the history
…ps$Server

Summary:
Add library defintions for:
 - [`https$Server.closeAllConnections()`](https://nodejs.org/api/http.html#servercloseallconnections) (Added v18.2.0)
 - [`https$Server.closeIdleConnections()`](https://nodejs.org/api/http.html#servercloseallconnections) (Added v18.2.0)

I originally added these to `http$Server` in D51232080 but missed `https$Server` - they should be on both.

Reviewed By: SamChou19815

Differential Revision: D58788947

fbshipit-source-id: a1d390b3f268365aa66fd6af0325d433e0467dd4
  • Loading branch information
robhogan authored and facebook-github-bot committed Jun 20, 2024
1 parent 0f9937f commit 11b58d7
Show file tree
Hide file tree
Showing 2 changed files with 249 additions and 247 deletions.
2 changes: 2 additions & 0 deletions lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,8 @@ declare class https$Server extends tls$Server {
...
}, callback?: Function): this;
close(callback?: (error: ?Error) => mixed): this;
closeAllConnections(): void;
closeIdleConnections(): void;
keepAliveTimeout: number;
headersTimeout: number;
setTimeout(msecs: number, callback: Function): this;
Expand Down
Loading

0 comments on commit 11b58d7

Please sign in to comment.