server-destroy

WebJar for server-destroy

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

server-destroy
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

server-destroy
WebJar for server-destroy
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/isaacs/server-destroy

Download server-destroy

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/server-destroy/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>server-destroy</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/server-destroy/
implementation 'org.webjars.npm:server-destroy:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/server-destroy/
implementation ("org.webjars.npm:server-destroy:1.0.1")
'org.webjars.npm:server-destroy:jar:1.0.1'
<dependency org="org.webjars.npm" name="server-destroy" rev="1.0.1">
  <artifact name="server-destroy" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='server-destroy', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "server-destroy" % "1.0.1"
[org.webjars.npm/server-destroy "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

server-destroy

Enable destroying a server, and all currently open connections.

Usage

var enableDestroy = require('server-destroy');

var server = http.createServer(function(req, res) {
  // do stuff, blah blah blah
});

server.listen(PORT);

// enhance with a 'destroy' function
enableDestroy(server);

// some time later...
server.destroy();

Versions

Version
1.0.1