1.0.1 • Published 10 years ago

server-destroy v1.0.1

Weekly downloads
1,158,615
License
ISC
Repository
github
Last release
10 years ago

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();
astro-no-undicidia-agents-baseservicedia-agent-baseservicewith-browsernuxt-compactnuxt2another-json-server@open-containers-manager/cli@r35007/mock-server-litejson-server-custom-router@infinitebrahmanuniverse/nolb-server-reddit-uhdincremental-astrotesting-ci-ortsatesting-ci-ortsa-node@everything-registry/sub-chunk-2736tamanyan_nuxtsystemic-expresstest-listen-destroywintersmith2wintersmithweb-component-testerweb-component-tester-bundleweb-component-tester-bvaleweb-component-tester-custom-runnervue-herwei-astro-testworkosworkos-clixl-json-serverteld-nuxtteld-runtime-nuxtstatic-api-mockvssrvue-cvs@cafienne/typescript-client@pepperi-addons/mobile-branded-app@rsf/json-serverjeuxuijson-server-extjson-server-fix-statuscodejson-server-forkjson-server-masterjson-server-plusjson-server-s3json-server-sinnbojson-server-testejson-server-cnjson-server-relationshipjson-server-visopjson-server-with-batch-insertionjson-server2jobboardfire-nuxtjoplinjoplin-cliiot-soljasmine_test_utilskdrivejson2apikaesongjson-servermockjump-json-serverhttp-mockserveridioimemento-json-servericeforgeimagetransferinfrastructure-expresshyinsit-serverhyinsit-workeri18next-spreadsheeti18next-google-sheethubot-partylinegulp-json-srvgulp-json-srv-forkedgoogle-photos-cligull-seedhas-nodehjkadshhjklhjkadshhjkl-serverhtml-converthermione-reactgulp-node-debughai-serverinternal-astro-99innov-boxinstant-indexinglockdlinkinatorlinkinator-css-editionlimitdluminati-proxy-strippedlt-gjsmateria-serverlocal-oauthlocal-static-serverkysol7google-taskkunwaremctermjs
1.0.1

10 years ago

1.0.0

13 years ago