Breaking
Client.dispatch
providesheaders
andtrailers
as an array of values (#337).Client.dispatch
adds aonConnect
handler to handle abort once dispatched on socket.Client.dispatch
expects request body to be handled by caller untilonConnect
has been called.- Removed
signal
option inClient.dispatch
. - Removed
requestTimeout
option innew Client(url, opts)
. ProviderequestTimeout
as an option for each individual request (#383). Client.busy
behavior slightly changed (#366).- Rename
maxKeepAliveTimeout
option innew Client(url, opts)
tokeepAliveMaxTimeout
(#359). requestTimeout
monitors time from request having been sent instead of from when it was queued (#343).- Error
body
on premature close (#336).
Fixes
- Unhandled exception (#372).
- Destroy request body on invalid callback (#382).
- Run
Client.upgrade
&Client.connect
callbacks in async scope. - CONNECT calls onUpgrade multiple times (#348).
- Don't reset socket until pipeline is empty (#334).
- Allow throwing from handler (#335).