Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests
Parameters
chunkSize: number
totalBytesSent: number
Returns void
OptionalonComplete
onComplete(trailers): void
Invoked when response payload and trailers have been received and the request has completed.
Parameters
trailers: null | string[]
Returns void
OptionalonConnect
onConnect(abort): void
Invoked 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.
Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests