@@ -58,32 +58,28 @@ export type LogProviderCallback = (provider: LogProvider) => LogProvider;
58
58
*/
59
59
export type OnErrorCallback = (
60
60
err : Error ,
61
- req : http . IncomingMessage ,
62
- res : http . ServerResponse ,
61
+ req : Request ,
62
+ res : Response ,
63
63
target ?: string | Partial < url . Url >
64
64
) => void ;
65
65
export type OnProxyResCallback = (
66
66
proxyRes : http . IncomingMessage ,
67
- req : http . IncomingMessage ,
68
- res : http . ServerResponse
67
+ req : Request ,
68
+ res : Response
69
69
) => void ;
70
70
export type OnProxyReqCallback = (
71
71
proxyReq : http . ClientRequest ,
72
- req : http . IncomingMessage ,
73
- res : http . ServerResponse ,
72
+ req : Request ,
73
+ res : Response ,
74
74
options : httpProxy . ServerOptions
75
75
) => void ;
76
76
export type OnProxyReqWsCallback = (
77
77
proxyReq : http . ClientRequest ,
78
- req : http . IncomingMessage ,
78
+ req : Request ,
79
79
socket : net . Socket ,
80
80
options : httpProxy . ServerOptions ,
81
81
head : any
82
82
) => void ;
83
- export type OnCloseCallback = (
84
- proxyRes : http . IncomingMessage ,
85
- proxySocket : net . Socket ,
86
- proxyHead : any
87
- ) => void ;
83
+ export type OnCloseCallback = ( proxyRes : Response , proxySocket : net . Socket , proxyHead : any ) => void ;
88
84
89
85
export type OnOpenCallback = ( proxySocket : net . Socket ) => void ;
0 commit comments