undici-types 7.18.1 → 7.19.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/cache-interceptor.d.ts +6 -0
- package/client.d.ts +10 -0
- package/package.json +1 -1
package/cache-interceptor.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ declare namespace CacheHandler {
|
|
|
39
39
|
*/
|
|
40
40
|
type?: 'shared' | 'private'
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Array of origins to cache. Only requests to these origins will be cached.
|
|
44
|
+
* Supports strings (case insensitive) and RegExp patterns.
|
|
45
|
+
* @default undefined (cache all origins)
|
|
46
|
+
*/
|
|
47
|
+
origins?: (string | RegExp)[]
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
export interface CacheControlDirectives {
|
package/client.d.ts
CHANGED
|
@@ -92,6 +92,16 @@ export declare namespace Client {
|
|
|
92
92
|
* @default 100
|
|
93
93
|
*/
|
|
94
94
|
maxConcurrentStreams?: number;
|
|
95
|
+
/**
|
|
96
|
+
* @description Sets the HTTP/2 stream-level flow-control window size (SETTINGS_INITIAL_WINDOW_SIZE).
|
|
97
|
+
* @default 262144
|
|
98
|
+
*/
|
|
99
|
+
initialWindowSize?: number;
|
|
100
|
+
/**
|
|
101
|
+
* @description Sets the HTTP/2 connection-level flow-control window size (ClientHttp2Session.setLocalWindowSize).
|
|
102
|
+
* @default 524288
|
|
103
|
+
*/
|
|
104
|
+
connectionWindowSize?: number;
|
|
95
105
|
}
|
|
96
106
|
export interface SocketInfo {
|
|
97
107
|
localAddress?: string
|