node/doc/api
isaacs d258fb0212 http: More useful setTimeout API on server
This adds the following to HTTP:

* server.setTimeout(msecs, callback)
  Sets all new connections to time out after the specified time, at
  which point it emits 'timeout' on the server, passing the socket as an
  argument.
  In this way, timeouts can be handled in one place consistently.
* req.setTimeout(), res.setTimeout()
  Essentially an alias to req/res.socket.setTimeout(), but without
  having to delve into a "buried" object.  Adds a listener on the
  req/res object, but not on the socket.
* server.timeout
  Number of milliseconds before incoming connections time out.
  (Default=1000*60*2, as before.)

Furthermore, if the user sets up their own timeout listener on either
the server, the request, or the response, then the default behavior
(destroying the socket) is suppressed.

Fix #3460
2013-03-06 12:43:48 -08:00
..
_toc.markdown doc: put API table of contents in alphabetical order 2012-09-25 14:38:36 +02:00
addons.markdown doc: fix line wrapping in addons.markdown 2013-01-25 14:27:46 -08:00
all.markdown doc: remote the "recommended modules" section 2012-08-22 23:58:34 +02:00
assert.markdown doc: update assert.doesNotThrow() docs 2012-08-29 02:36:22 +02:00
buffer.markdown buffer: accept negative indices in Buffer#slice() 2013-02-12 17:09:19 -08:00
child_process.markdown Merge remote-tracking branch 'origin/v0.8' 2013-02-28 16:58:24 +01:00
cluster.markdown cluster: Rename destroy() to kill(signal=SIGTERM) 2013-03-03 17:26:38 -08:00
crypto.markdown doc: Add crypto.pseudoRandomBytes, fix typo 2013-03-03 15:30:49 -08:00
debugger.markdown doc: Connecting debugger to existing node process 2013-01-24 17:16:19 -08:00
dgram.markdown add docs for socket/server/timer unref and ref 2012-07-23 18:31:31 +02:00
dns.markdown doc: improve dns module docs 2012-04-18 21:51:16 +02:00
documentation.markdown doc: modify documentation style about 'Stability: 5' 2013-01-17 13:51:21 +01:00
domain.markdown Update domain.markdown 2013-03-05 08:15:54 -08:00
events.markdown events: add check for listeners length 2013-03-01 17:36:47 -08:00
fs.markdown fs: Support mode/flag options to read/append/writeFile 2013-03-01 09:48:57 -08:00
globals.markdown doc: remove broken require.extensions example 2012-12-06 21:58:36 +01:00
http.markdown http: More useful setTimeout API on server 2013-03-06 12:43:48 -08:00
https.markdown Merge remote-tracking branch 'ry/v0.8' into master 2012-12-13 16:57:58 -08:00
index.markdown Remove util.print from docs 2010-11-07 17:22:56 -08:00
modules.markdown node: remove unused flags and files 2012-06-18 23:56:42 +02:00
net.markdown Merge remote-tracking branch 'ry/v0.8' into master 2013-02-06 16:29:30 -08:00
os.markdown os: rename tmpDir() to tmpdir() for consistency 2013-01-30 04:24:58 +01:00
path.markdown path: add platform specific path delimiter 2012-10-01 22:10:36 +02:00
process.markdown Merge remote-tracking branch 'ry/v0.8' into master 2013-01-11 10:18:07 -08:00
punycode.markdown doc: add punycode.js documentation 2012-05-23 04:04:12 +02:00
querystring.markdown Merge remote-tracking branch 'ry/v0.6' into v0.6-merge 2012-03-03 23:38:52 -08:00
readline.markdown docs: update var names in readline docs to be consistent 2012-05-06 11:23:09 -07:00
repl.markdown doc: add prompt to fix repl_test.js example 2013-02-13 16:40:27 +01:00
stdio.markdown doc: Improve cross-linking in API docs markdown 2012-06-15 09:44:37 -07:00
stream.markdown stream: Remove bufferSize option 2013-03-06 11:44:30 -08:00
string_decoder.markdown string_decoder: Add 'end' method, do base64 properly 2012-10-11 16:46:18 -07:00
synopsis.markdown doc refactor: synopsis 2012-02-29 16:04:54 -08:00
timers.markdown doc: add setImmediate execute timing description 2013-02-15 16:11:05 -08:00
tls.markdown Add bytesWritten to tls.CryptoStream 2013-01-24 16:48:49 -08:00
tty.markdown tty: clarify that tty.setRawMode() has moved to process.stdin 2012-03-29 13:15:24 -07:00
url.markdown doc: add url.resolve() usage examples 2013-03-04 20:54:36 +01:00
util.markdown Merge remote-tracking branch 'origin/v0.8' 2012-10-13 16:16:56 -07:00
vm.markdown docs: add warning to vm module docs 2012-05-07 21:39:08 +02:00
zlib.markdown doc: zlib: document flush() and reset() methods 2012-09-19 13:22:29 +02:00