You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Invoked after response payload data is received. */
252
+
onResponseData?(chunk: Buffer|string): void;
253
+
/** Invoked after response has finished */
254
+
onResponseEnd?(): void;
255
+
/** Invoked after response has errored */
256
+
onResponseError?(err: Error): void;
257
+
258
+
// Legacy API
259
+
219
260
/** 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. */
220
261
onConnect?(abort: ()=>void): void;
221
262
/** Invoked when an error has occurred. */
222
263
onError?(err: Error): void;
223
-
/** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
0 commit comments