An HTTP/1.1 client, written from scratch for Node.js
MIT License
Bot releases are visible (Hide)
Published by ronag about 4 years ago
Fixes:
Improvements:
Published by ronag about 4 years ago
Client.dispatch
provides headers
and trailers
as an array of values (#337).Client.dispatch
adds a onConnect
handler to handle abort once dispatched on socket.Client.dispatch
expects request body to be handled by caller until onConnect
has been called.signal
option in Client.dispatch
.requestTimeout
option in new Client(url, opts)
. Provide requestTimeout
as an option for each individual request (#383).Client.busy
behavior slightly changed (#366).maxKeepAliveTimeout
option in new Client(url, opts)
to keepAliveMaxTimeout
(#359).requestTimeout
monitors time from request having been sent instead of from when it was queued (#343).body
on premature close (#336).Client.upgrade
& Client.connect
callbacks in async scope.keepAlive
option (#357).net.isIP
(#330).Published by ronag about 4 years ago
dispatch
, connect
, upgrade
.{ opaque }
object as value.stream(opts, handler, callback)
callback now receive a { trailers, opaque }
object as value.idleTimeout
option to differentiate timeout of active vs inactive sockets.maxKeepAliveTimeout
, keepAliveTimeoutThreshold
options.Published by mcollina about 4 years ago
📚 PR:
Published by ronag over 4 years ago
InformationalError
for 'disconnect'
event for when a disconnect was expected.Published by ronag over 4 years ago
http-parser-js
.headersTimeout
option.client.pipeline
and the server does not consume the entire request body.client.full
with client.busy
property.socketPath
option.CONNECT
method.