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
* update types for client
* update types for client.js
* revert some changes made in client.js
* update client.js
* use never for all @deprecated properties
* add tests
* revert since it's false anyways lol
/** Property to get and set the pipelining factor. */
13
13
pipelining: number;
@@ -17,40 +17,62 @@ declare class Client extends Dispatcher {
17
17
destroyed: boolean;
18
18
}
19
19
20
-
declarenamespaceClient{
20
+
exportdeclarenamespaceClient{
21
+
exportinterfaceOptionsInterceptors{
22
+
Client: readonlyDispatchInterceptor[];
23
+
}
21
24
exportinterfaceOptions{
25
+
/** TODO */
26
+
interceptors?: OptionsInterceptors;
27
+
/** The maximum length of request headers in bytes. Default: `16384` (16KiB). */
28
+
maxHeaderSize?: number;
29
+
/** The amount of time the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
30
+
headersTimeout?: number;
31
+
/** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */
32
+
socketTimeout?: never;
33
+
/** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */
34
+
requestTimeout?: never;
35
+
/** TODO */
36
+
connectTimeout?: number;
37
+
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
38
+
bodyTimeout?: number;
39
+
/** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */
40
+
idleTimeout?: never;
41
+
/** @deprecated unsupported keepAlive, use pipelining=0 instead */
42
+
keepAlive?: never;
22
43
/** the timeout after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */
23
-
keepAliveTimeout?: number|null;
44
+
keepAliveTimeout?: number;
45
+
/** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */
46
+
maxKeepAliveTimeout?: never;
24
47
/** the maximum allowed `idleTimeout` when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */
25
-
keepAliveMaxTimeout?: number|null;
48
+
keepAliveMaxTimeout?: number;
26
49
/** A number subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */
27
-
keepAliveTimeoutThreshold?: number|null;
50
+
keepAliveTimeoutThreshold?: number;
51
+
/** TODO */
52
+
socketPath?: string;
28
53
/** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */
/** The maximum length of request headers in bytes. Default: `16384` (16KiB). */
33
-
maxHeaderSize?: number|null;
34
-
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
35
-
bodyTimeout?: number|null;
36
-
/** The amount of time the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
37
-
headersTimeout?: number|null;
54
+
pipelining?: number;
55
+
/** @deprecated use the connect option instead */
56
+
tls?: never;
38
57
/** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
/** Max response body size in bytes, -1 is disabled */
45
-
maxResponseSize?: number|null;
70
+
maxResponseSize?: number;
46
71
/** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
47
72
autoSelectFamily?: boolean;
48
73
/** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
0 commit comments