Optional
onOptional
onOptional
onInvoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails.
Optional
err: ErrorOptional
onOptional
onInvoked when an error has occurred.
Optional
onOptional
onOptional
onInvoked when request is upgraded either due to a Upgrade
header or CONNECT
method.
Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests