Skip to content
generated from lifion/lifion-template

Module for gracefully terminating Node.js HTTP servers

License

Notifications You must be signed in to change notification settings

lifion/serv-term

Repository files navigation

serv-term

npm version

Getting Started

To install the module:

npm install serv-term --save

Features

API Reference

serv-term~createServerTerminator(server, options) ⇒ function

Registers connection listeners, and returns a function that when called will close a server and all open connections

Kind: inner method of serv-term
Returns: function - A function to initiate the shutdown of the server

Param Type Description
server http.Server | https.Server The server to be terminated
options Object Accepts the following options
[options.timeout] number The duration to wait before forcefully terminating the server

License

MIT

About

Module for gracefully terminating Node.js HTTP servers

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published