undici-types 5.25.3 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.d.ts +1 -1
- package/client.d.ts +1 -1
- package/connector.d.ts +1 -0
- package/package.json +1 -1
package/agent.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare class Agent extends Dispatcher{
|
|
|
17
17
|
declare namespace Agent {
|
|
18
18
|
export interface Options extends Pool.Options {
|
|
19
19
|
/** Default: `(origin, opts) => new Pool(origin, opts)`. */
|
|
20
|
-
factory?(origin: URL, opts: Object): Dispatcher;
|
|
20
|
+
factory?(origin: string | URL, opts: Object): Dispatcher;
|
|
21
21
|
/** Integer. Default: `0` */
|
|
22
22
|
maxRedirections?: number;
|
|
23
23
|
|
package/client.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare namespace Client {
|
|
|
23
23
|
export interface Options {
|
|
24
24
|
/** TODO */
|
|
25
25
|
interceptors?: OptionsInterceptors;
|
|
26
|
-
/** The maximum length of request headers in bytes. Default: `16384` (16KiB). */
|
|
26
|
+
/** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
|
|
27
27
|
maxHeaderSize?: number;
|
|
28
28
|
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
|
|
29
29
|
headersTimeout?: number;
|
package/connector.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare function buildConnector (options?: buildConnector.BuildOptions): buildCo
|
|
|
6
6
|
|
|
7
7
|
declare namespace buildConnector {
|
|
8
8
|
export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {
|
|
9
|
+
allowH2?: boolean;
|
|
9
10
|
maxCachedSessions?: number | null;
|
|
10
11
|
socketPath?: string | null;
|
|
11
12
|
timeout?: number | null;
|