node/lib
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
..
internal child_process: fix data loss with readable event 2016-02-11 10:47:36 -05:00
_debug_agent.js debugger: assert test before accessing this.binding 2016-02-10 08:28:30 -08:00
_debugger.js lib,test: remove extra semicolons 2016-01-16 19:54:25 +01:00
_http_agent.js http: allow async createConnection() 2016-02-11 12:52:46 -05:00
_http_client.js http: allow async createConnection() 2016-02-11 12:52:46 -05:00
_http_common.js http: strictly forbid invalid characters from headers 2016-02-09 09:22:09 -08:00
_http_incoming.js http: fix non-string header value concatenation 2015-12-30 12:39:17 -05:00
_http_outgoing.js http: strictly forbid invalid characters from headers 2016-02-09 09:22:09 -08:00
_http_server.js lib: fix style issues after eslint update 2016-01-13 23:16:05 +01:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js stream: refactor redeclared variables 2016-01-24 21:27:22 -08:00
_stream_transform.js stream: prevent object map change in TransformState 2016-02-02 13:05:04 -06:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js streams: 5% throughput gain when sending small chunks 2016-02-09 09:30:12 +00:00
_tls_common.js tls: scope loop vars with let 2016-01-26 20:53:05 +01:00
_tls_legacy.js lib: fix style issues after eslint update 2016-01-13 23:16:05 +01:00
_tls_wrap.js tls: add getProtocol() to TLS sockets 2016-02-03 21:34:06 -05:00
assert.js lib: fix style issues after eslint update 2016-01-13 23:16:05 +01:00
buffer.js buffer: add encoding parameter to fill() 2016-02-10 12:06:20 -07:00
child_process.js child_process: add shell option to spawn() 2016-01-26 19:40:43 -05:00
cluster.js cluster: fix race condition setting suicide prop 2016-01-13 20:15:02 -08:00
console.js console: delete timers that have ended 2015-11-13 11:36:45 -05:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js crypto: pbkdf2 deprecate digest overload. 2016-01-23 02:26:28 +09:00
dgram.js dgram: scope redeclared variables 2016-01-31 14:15:51 -08:00
dns.js dns: add resolvePtr to query plain DNS PTR records 2016-02-08 17:30:38 +01:00
domain.js domains: clear stack when no error handler 2016-01-13 10:55:15 -08:00
events.js lib,test: remove extra semicolons 2016-01-16 19:54:25 +01:00
fs.js fs: deprecate fs.read's string interface 2016-02-05 09:43:24 +05:30
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js https: evict cached sessions on error 2016-02-01 21:52:04 -05:00
module.js module: refactor redeclared variable 2016-01-31 19:16:09 +01:00
net.js net: refactor redeclared variables 2016-02-01 08:34:38 -08:00
os.js lib: remove unused modules 2015-12-25 13:05:23 -08:00
path.js path: performance improvements on all platforms 2016-02-09 20:35:46 -08:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js querystring: check that maxKeys is finite 2016-02-05 13:58:50 -08:00
readline.js readline: Remove XXX and output debuglog 2016-01-18 07:57:55 -08:00
repl.js repl: handle quotes within regexp literal 2016-02-09 13:21:09 +01:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js string_decoder: fix performance regression 2016-02-11 10:41:49 -05:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js tools: lint for spacing around unary operators 2016-02-04 10:56:17 -08:00
tls.js lib,test: remove extra semicolons 2016-01-16 19:54:25 +01:00
tty.js lib: remove unused modules 2015-12-25 13:05:23 -08:00
url.js url: change scoping of variables with let 2016-01-27 14:54:50 -08:00
util.js lib: scope loop variables 2016-02-01 09:28:38 -08:00
v8.js v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: only apply drain listener if given callback 2015-11-14 08:11:28 -08:00