cdk-common 2.0.409 → 2.0.411
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/.jsii +34 -4
- package/API.md +25 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +5 -0
- package/lib/managed-policies.js +6 -1
- package/node_modules/@aws-cdk/assert/package.json +9 -9
- package/node_modules/@aws-cdk/cfnspec/package.json +4 -4
- package/node_modules/@aws-cdk/cfnspec/spec/cfn-docs.json +270 -125
- package/node_modules/@aws-cdk/cloudformation-diff/package.json +4 -5
- package/package.json +6 -6
- package/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@types/node/README.md +0 -16
- package/node_modules/@types/node/assert.d.ts +0 -128
- package/node_modules/@types/node/async_hooks.d.ts +0 -229
- package/node_modules/@types/node/buffer.d.ts +0 -89
- package/node_modules/@types/node/child_process.d.ts +0 -514
- package/node_modules/@types/node/cluster.d.ts +0 -265
- package/node_modules/@types/node/console.d.ts +0 -142
- package/node_modules/@types/node/constants.d.ts +0 -18
- package/node_modules/@types/node/crypto.d.ts +0 -1283
- package/node_modules/@types/node/dgram.d.ts +0 -144
- package/node_modules/@types/node/dns.d.ts +0 -387
- package/node_modules/@types/node/domain.d.ts +0 -27
- package/node_modules/@types/node/events.d.ts +0 -82
- package/node_modules/@types/node/fs/promises.d.ts +0 -572
- package/node_modules/@types/node/fs.d.ts +0 -2281
- package/node_modules/@types/node/globals.d.ts +0 -747
- package/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/node/http.d.ts +0 -580
- package/node_modules/@types/node/http2.d.ts +0 -962
- package/node_modules/@types/node/https.d.ts +0 -272
- package/node_modules/@types/node/index.d.ts +0 -98
- package/node_modules/@types/node/inspector.d.ts +0 -3051
- package/node_modules/@types/node/module.d.ts +0 -56
- package/node_modules/@types/node/net.d.ts +0 -308
- package/node_modules/@types/node/os.d.ts +0 -243
- package/node_modules/@types/node/package.json +0 -232
- package/node_modules/@types/node/path.d.ts +0 -168
- package/node_modules/@types/node/perf_hooks.d.ts +0 -274
- package/node_modules/@types/node/process.d.ts +0 -413
- package/node_modules/@types/node/punycode.d.ts +0 -78
- package/node_modules/@types/node/querystring.d.ts +0 -31
- package/node_modules/@types/node/readline.d.ts +0 -174
- package/node_modules/@types/node/repl.d.ts +0 -398
- package/node_modules/@types/node/stream.d.ts +0 -359
- package/node_modules/@types/node/string_decoder.d.ts +0 -10
- package/node_modules/@types/node/timers.d.ts +0 -19
- package/node_modules/@types/node/tls.d.ts +0 -784
- package/node_modules/@types/node/trace_events.d.ts +0 -64
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -128
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -229
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -89
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -514
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -265
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -142
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -1283
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -144
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -387
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -27
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -82
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -572
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -2281
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -746
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -580
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -962
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -272
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -53
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -3051
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -56
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -308
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -243
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -168
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -274
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -413
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -78
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -31
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -174
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -398
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -359
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -10
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -784
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -64
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -69
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -149
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -216
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -190
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -155
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -89
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -241
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -364
- package/node_modules/@types/node/tty.d.ts +0 -69
- package/node_modules/@types/node/url.d.ts +0 -149
- package/node_modules/@types/node/util.d.ts +0 -216
- package/node_modules/@types/node/v8.d.ts +0 -190
- package/node_modules/@types/node/vm.d.ts +0 -155
- package/node_modules/@types/node/wasi.d.ts +0 -89
- package/node_modules/@types/node/worker_threads.d.ts +0 -241
- package/node_modules/@types/node/zlib.d.ts +0 -364
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
declare module 'https' {
|
|
2
|
-
import { Duplex } from 'stream';
|
|
3
|
-
import * as tls from 'tls';
|
|
4
|
-
import * as http from 'http';
|
|
5
|
-
import { URL } from 'url';
|
|
6
|
-
|
|
7
|
-
type ServerOptions<
|
|
8
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
9
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
10
|
-
> = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
|
|
11
|
-
|
|
12
|
-
type RequestOptions = http.RequestOptions &
|
|
13
|
-
tls.SecureContextOptions & {
|
|
14
|
-
checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
|
|
15
|
-
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
16
|
-
servername?: string | undefined; // SNI TLS Extension
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
20
|
-
rejectUnauthorized?: boolean | undefined;
|
|
21
|
-
maxCachedSessions?: number | undefined;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class Agent extends http.Agent {
|
|
25
|
-
constructor(options?: AgentOptions);
|
|
26
|
-
options: AgentOptions;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface Server<
|
|
30
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
31
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
32
|
-
> extends http.Server<Request, Response> {}
|
|
33
|
-
class Server<
|
|
34
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
35
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
36
|
-
> extends tls.Server {
|
|
37
|
-
constructor(requestListener?: http.RequestListener<Request, Response>);
|
|
38
|
-
constructor(
|
|
39
|
-
options: ServerOptions<Request, Response>,
|
|
40
|
-
requestListener?: http.RequestListener<Request, Response>,
|
|
41
|
-
);
|
|
42
|
-
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
43
|
-
addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
44
|
-
addListener(
|
|
45
|
-
event: 'newSession',
|
|
46
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
47
|
-
): this;
|
|
48
|
-
addListener(
|
|
49
|
-
event: 'OCSPRequest',
|
|
50
|
-
listener: (
|
|
51
|
-
certificate: Buffer,
|
|
52
|
-
issuer: Buffer,
|
|
53
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
54
|
-
) => void,
|
|
55
|
-
): this;
|
|
56
|
-
addListener(
|
|
57
|
-
event: 'resumeSession',
|
|
58
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
59
|
-
): this;
|
|
60
|
-
addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
61
|
-
addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
62
|
-
addListener(event: 'close', listener: () => void): this;
|
|
63
|
-
addListener(event: 'connection', listener: (socket: Duplex) => void): this;
|
|
64
|
-
addListener(event: 'error', listener: (err: Error) => void): this;
|
|
65
|
-
addListener(event: 'listening', listener: () => void): this;
|
|
66
|
-
addListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
|
|
67
|
-
addListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
|
|
68
|
-
addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
|
|
69
|
-
addListener(
|
|
70
|
-
event: 'connect',
|
|
71
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
72
|
-
): this;
|
|
73
|
-
addListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
|
|
74
|
-
addListener(
|
|
75
|
-
event: 'upgrade',
|
|
76
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
77
|
-
): this;
|
|
78
|
-
emit(event: string, ...args: any[]): boolean;
|
|
79
|
-
emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean;
|
|
80
|
-
emit(
|
|
81
|
-
event: 'newSession',
|
|
82
|
-
sessionId: Buffer,
|
|
83
|
-
sessionData: Buffer,
|
|
84
|
-
callback: (err: Error, resp: Buffer) => void,
|
|
85
|
-
): boolean;
|
|
86
|
-
emit(
|
|
87
|
-
event: 'OCSPRequest',
|
|
88
|
-
certificate: Buffer,
|
|
89
|
-
issuer: Buffer,
|
|
90
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
91
|
-
): boolean;
|
|
92
|
-
emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
|
93
|
-
emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean;
|
|
94
|
-
emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
95
|
-
emit(event: 'close'): boolean;
|
|
96
|
-
emit(event: 'connection', socket: Duplex): boolean;
|
|
97
|
-
emit(event: 'error', err: Error): boolean;
|
|
98
|
-
emit(event: 'listening'): boolean;
|
|
99
|
-
emit(event: 'checkContinue', req: InstanceType<Request>, res: InstanceType<Response>): boolean;
|
|
100
|
-
emit(event: 'checkExpectation', req: InstanceType<Request>, res: InstanceType<Response>): boolean;
|
|
101
|
-
emit(event: 'clientError', err: Error, socket: Duplex): boolean;
|
|
102
|
-
emit(event: 'connect', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
|
103
|
-
emit(event: 'request', req: InstanceType<Request>, res: InstanceType<Response>): boolean;
|
|
104
|
-
emit(event: 'upgrade', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
|
105
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
|
106
|
-
on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
107
|
-
on(
|
|
108
|
-
event: 'newSession',
|
|
109
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
110
|
-
): this;
|
|
111
|
-
on(
|
|
112
|
-
event: 'OCSPRequest',
|
|
113
|
-
listener: (
|
|
114
|
-
certificate: Buffer,
|
|
115
|
-
issuer: Buffer,
|
|
116
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
117
|
-
) => void,
|
|
118
|
-
): this;
|
|
119
|
-
on(
|
|
120
|
-
event: 'resumeSession',
|
|
121
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
122
|
-
): this;
|
|
123
|
-
on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
124
|
-
on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
125
|
-
on(event: 'close', listener: () => void): this;
|
|
126
|
-
on(event: 'connection', listener: (socket: Duplex) => void): this;
|
|
127
|
-
on(event: 'error', listener: (err: Error) => void): this;
|
|
128
|
-
on(event: 'listening', listener: () => void): this;
|
|
129
|
-
on(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
|
|
130
|
-
on(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
|
|
131
|
-
on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
|
|
132
|
-
on(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
133
|
-
on(event: 'request', listener: http.RequestListener<Request, Response>): this;
|
|
134
|
-
on(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
135
|
-
once(event: string, listener: (...args: any[]) => void): this;
|
|
136
|
-
once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
137
|
-
once(
|
|
138
|
-
event: 'newSession',
|
|
139
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
140
|
-
): this;
|
|
141
|
-
once(
|
|
142
|
-
event: 'OCSPRequest',
|
|
143
|
-
listener: (
|
|
144
|
-
certificate: Buffer,
|
|
145
|
-
issuer: Buffer,
|
|
146
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
147
|
-
) => void,
|
|
148
|
-
): this;
|
|
149
|
-
once(
|
|
150
|
-
event: 'resumeSession',
|
|
151
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
152
|
-
): this;
|
|
153
|
-
once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
154
|
-
once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
155
|
-
once(event: 'close', listener: () => void): this;
|
|
156
|
-
once(event: 'connection', listener: (socket: Duplex) => void): this;
|
|
157
|
-
once(event: 'error', listener: (err: Error) => void): this;
|
|
158
|
-
once(event: 'listening', listener: () => void): this;
|
|
159
|
-
once(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
|
|
160
|
-
once(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
|
|
161
|
-
once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
|
|
162
|
-
once(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
163
|
-
once(event: 'request', listener: http.RequestListener<Request, Response>): this;
|
|
164
|
-
once(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
165
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
166
|
-
prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
167
|
-
prependListener(
|
|
168
|
-
event: 'newSession',
|
|
169
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
170
|
-
): this;
|
|
171
|
-
prependListener(
|
|
172
|
-
event: 'OCSPRequest',
|
|
173
|
-
listener: (
|
|
174
|
-
certificate: Buffer,
|
|
175
|
-
issuer: Buffer,
|
|
176
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
177
|
-
) => void,
|
|
178
|
-
): this;
|
|
179
|
-
prependListener(
|
|
180
|
-
event: 'resumeSession',
|
|
181
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
182
|
-
): this;
|
|
183
|
-
prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
184
|
-
prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
185
|
-
prependListener(event: 'close', listener: () => void): this;
|
|
186
|
-
prependListener(event: 'connection', listener: (socket: Duplex) => void): this;
|
|
187
|
-
prependListener(event: 'error', listener: (err: Error) => void): this;
|
|
188
|
-
prependListener(event: 'listening', listener: () => void): this;
|
|
189
|
-
prependListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
|
|
190
|
-
prependListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
|
|
191
|
-
prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
|
|
192
|
-
prependListener(
|
|
193
|
-
event: 'connect',
|
|
194
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
195
|
-
): this;
|
|
196
|
-
prependListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
|
|
197
|
-
prependListener(
|
|
198
|
-
event: 'upgrade',
|
|
199
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
200
|
-
): this;
|
|
201
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
202
|
-
prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
203
|
-
prependOnceListener(
|
|
204
|
-
event: 'newSession',
|
|
205
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
206
|
-
): this;
|
|
207
|
-
prependOnceListener(
|
|
208
|
-
event: 'OCSPRequest',
|
|
209
|
-
listener: (
|
|
210
|
-
certificate: Buffer,
|
|
211
|
-
issuer: Buffer,
|
|
212
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
213
|
-
) => void,
|
|
214
|
-
): this;
|
|
215
|
-
prependOnceListener(
|
|
216
|
-
event: 'resumeSession',
|
|
217
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
218
|
-
): this;
|
|
219
|
-
prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
220
|
-
prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
221
|
-
prependOnceListener(event: 'close', listener: () => void): this;
|
|
222
|
-
prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this;
|
|
223
|
-
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
|
224
|
-
prependOnceListener(event: 'listening', listener: () => void): this;
|
|
225
|
-
prependOnceListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
|
|
226
|
-
prependOnceListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
|
|
227
|
-
prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
|
|
228
|
-
prependOnceListener(
|
|
229
|
-
event: 'connect',
|
|
230
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
231
|
-
): this;
|
|
232
|
-
prependOnceListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
|
|
233
|
-
prependOnceListener(
|
|
234
|
-
event: 'upgrade',
|
|
235
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
236
|
-
): this;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function createServer<
|
|
240
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
241
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
242
|
-
>(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
|
|
243
|
-
function createServer<
|
|
244
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
245
|
-
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
246
|
-
>(
|
|
247
|
-
options: ServerOptions<Request, Response>,
|
|
248
|
-
requestListener?: http.RequestListener<Request, Response>,
|
|
249
|
-
): Server<Request, Response>;
|
|
250
|
-
function request(
|
|
251
|
-
options: RequestOptions | string | URL,
|
|
252
|
-
callback?: (res: http.IncomingMessage) => void,
|
|
253
|
-
): http.ClientRequest;
|
|
254
|
-
function request(
|
|
255
|
-
url: string | URL,
|
|
256
|
-
options: RequestOptions,
|
|
257
|
-
callback?: (res: http.IncomingMessage) => void,
|
|
258
|
-
): http.ClientRequest;
|
|
259
|
-
function get(
|
|
260
|
-
options: RequestOptions | string | URL,
|
|
261
|
-
callback?: (res: http.IncomingMessage) => void,
|
|
262
|
-
): http.ClientRequest;
|
|
263
|
-
function get(
|
|
264
|
-
url: string | URL,
|
|
265
|
-
options: RequestOptions,
|
|
266
|
-
callback?: (res: http.IncomingMessage) => void,
|
|
267
|
-
): http.ClientRequest;
|
|
268
|
-
let globalAgent: Agent;
|
|
269
|
-
}
|
|
270
|
-
declare module 'node:https' {
|
|
271
|
-
export * from 'https';
|
|
272
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// NOTE: These definitions support NodeJS and TypeScript 4.8 and earlier
|
|
2
|
-
|
|
3
|
-
// Reference required types from the default lib:
|
|
4
|
-
/// <reference lib="es2018" />
|
|
5
|
-
/// <reference lib="esnext.asynciterable" />
|
|
6
|
-
/// <reference lib="esnext.intl" />
|
|
7
|
-
/// <reference lib="esnext.bigint" />
|
|
8
|
-
|
|
9
|
-
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
10
|
-
/// <reference path="assert.d.ts" />
|
|
11
|
-
/// <reference path="globals.d.ts" />
|
|
12
|
-
/// <reference path="async_hooks.d.ts" />
|
|
13
|
-
/// <reference path="buffer.d.ts" />
|
|
14
|
-
/// <reference path="child_process.d.ts" />
|
|
15
|
-
/// <reference path="cluster.d.ts" />
|
|
16
|
-
/// <reference path="console.d.ts" />
|
|
17
|
-
/// <reference path="constants.d.ts" />
|
|
18
|
-
/// <reference path="crypto.d.ts" />
|
|
19
|
-
/// <reference path="dgram.d.ts" />
|
|
20
|
-
/// <reference path="dns.d.ts" />
|
|
21
|
-
/// <reference path="domain.d.ts" />
|
|
22
|
-
/// <reference path="events.d.ts" />
|
|
23
|
-
/// <reference path="fs.d.ts" />
|
|
24
|
-
/// <reference path="fs/promises.d.ts" />
|
|
25
|
-
/// <reference path="http.d.ts" />
|
|
26
|
-
/// <reference path="http2.d.ts" />
|
|
27
|
-
/// <reference path="https.d.ts" />
|
|
28
|
-
/// <reference path="inspector.d.ts" />
|
|
29
|
-
/// <reference path="module.d.ts" />
|
|
30
|
-
/// <reference path="net.d.ts" />
|
|
31
|
-
/// <reference path="os.d.ts" />
|
|
32
|
-
/// <reference path="path.d.ts" />
|
|
33
|
-
/// <reference path="perf_hooks.d.ts" />
|
|
34
|
-
/// <reference path="process.d.ts" />
|
|
35
|
-
/// <reference path="punycode.d.ts" />
|
|
36
|
-
/// <reference path="querystring.d.ts" />
|
|
37
|
-
/// <reference path="readline.d.ts" />
|
|
38
|
-
/// <reference path="repl.d.ts" />
|
|
39
|
-
/// <reference path="stream.d.ts" />
|
|
40
|
-
/// <reference path="string_decoder.d.ts" />
|
|
41
|
-
/// <reference path="timers.d.ts" />
|
|
42
|
-
/// <reference path="tls.d.ts" />
|
|
43
|
-
/// <reference path="trace_events.d.ts" />
|
|
44
|
-
/// <reference path="tty.d.ts" />
|
|
45
|
-
/// <reference path="url.d.ts" />
|
|
46
|
-
/// <reference path="util.d.ts" />
|
|
47
|
-
/// <reference path="v8.d.ts" />
|
|
48
|
-
/// <reference path="vm.d.ts" />
|
|
49
|
-
/// <reference path="wasi.d.ts" />
|
|
50
|
-
/// <reference path="worker_threads.d.ts" />
|
|
51
|
-
/// <reference path="zlib.d.ts" />
|
|
52
|
-
|
|
53
|
-
/// <reference path="globals.global.d.ts" />
|