node/doc/api
Brian White 9bee03aaf2 http: allow async createConnection()
This commit adds support for async createConnection()
implementations and is still backwards compatible with
synchronous createConnection() implementations.

This commit also makes the http client more friendly with
generic stream objects produced by createConnection() by
checking stream.writable instead of stream.destroyed as the
latter is currently a net.Socket-ism and not set by the core
stream implementations.

PR-URL: https://github.com/nodejs/node/pull/4638
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-02-11 12:52:46 -05:00
..
_toc.markdown deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
addons.markdown doc: fix links in Addons docs 2016-02-04 10:14:46 -08:00
all.markdown deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
assert.markdown doc: apply consistent styling for functions 2016-02-02 14:28:49 -08:00
buffer.markdown buffer: add encoding parameter to fill() 2016-02-10 12:06:20 -07:00
child_process.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
cluster.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
console.markdown doc: console is asynchronous unless it's a file 2016-02-07 23:28:21 +01:00
crypto.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
debugger.markdown doc: replace function expressions with arrows 2016-01-27 23:00:20 +01:00
dgram.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
dns.markdown dns: add resolvePtr to query plain DNS PTR records 2016-02-08 17:30:38 +01:00
documentation.markdown doc: standardize references to node.js in docs 2015-12-03 12:28:10 -08:00
domain.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
errors.markdown doc: fenced all code blocks, typo fixes 2016-01-21 20:55:09 +01:00
events.markdown doc: replace function expressions with arrows 2016-01-27 23:00:20 +01:00
fs.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
globals.markdown doc: proper markdown escaping -> \_\_, \*, \_ 2016-01-22 21:32:50 -08:00
http.markdown http: allow async createConnection() 2016-02-11 12:52:46 -05:00
https.markdown doc: minor improvement to HTTPS doc 2016-02-01 09:14:42 -08:00
index.markdown Remove util.print from docs 2010-11-07 17:22:56 -08:00
modules.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
net.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
os.markdown doc: minor improvement in OS docs 2016-02-04 19:25:07 +01:00
path.markdown doc: proper markdown escaping -> \_\_, \*, \_ 2016-01-22 21:32:50 -08:00
process.markdown doc: fix minor typo in process doc 2016-02-01 08:48:02 +01:00
punycode.markdown doc: fenced all code blocks, typo fixes 2016-01-21 20:55:09 +01:00
querystring.markdown doc: fenced all code blocks, typo fixes 2016-01-21 20:55:09 +01:00
readline.markdown doc: don't use "interface" as a variable name 2016-01-30 00:33:14 +01:00
repl.markdown doc: fix minor inconsistencies in repl doc 2016-02-11 07:16:28 -08:00
stream.markdown doc: fix type references for link gen, link css 2016-02-09 13:12:21 +01:00
string_decoder.markdown doc: fenced all code blocks, typo fixes 2016-01-21 20:55:09 +01:00
synopsis.markdown doc: harmonize $ node command line notation 2016-01-22 19:57:19 +01:00
timers.markdown timers: fail early when callback is not a function 2016-01-04 14:56:19 +11:00
tls.markdown doc: fix inconsistent styling 2016-02-04 10:11:07 -08:00
tty.markdown doc: fenced all code blocks, typo fixes 2016-01-21 20:55:09 +01:00
url.markdown doc: fenced all code blocks, typo fixes 2016-01-21 20:55:09 +01:00
util.markdown doc: replace function expressions with arrows 2016-01-27 23:00:20 +01:00
v8.markdown doc: fenced all code blocks, typo fixes 2016-01-21 20:55:09 +01:00
vm.markdown doc: improve styling consistency in VM docs 2016-02-02 09:03:10 -08:00
zlib.markdown doc: replace function expressions with arrows 2016-01-27 23:00:20 +01:00