Breaking
Client.dispatchprovidesheadersandtrailersas an array of values (#337).Client.dispatchadds aonConnecthandler to handle abort once dispatched on socket.Client.dispatchexpects request body to be handled by caller untilonConnecthas been called.- Removed
signaloption inClient.dispatch. - Removed
requestTimeoutoption innew Client(url, opts). ProviderequestTimeoutas an option for each individual request (#383). Client.busybehavior slightly changed (#366).- Rename
maxKeepAliveTimeoutoption innew Client(url, opts)tokeepAliveMaxTimeout(#359). requestTimeoutmonitors time from request having been sent instead of from when it was queued (#343).- Error
bodyon premature close (#336).
Fixes
- Unhandled exception (#372).
- Destroy request body on invalid callback (#382).
- Run
Client.upgrade&Client.connectcallbacks in async scope. - CONNECT calls onUpgrade multiple times (#348).
- Don't reset socket until pipeline is empty (#334).
- Allow throwing from handler (#335).