mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #24440 from frankschulz/master
Fix https.globalAgent.options in node package
This commit is contained in:
Vendored
+1
@@ -1769,6 +1769,7 @@ declare module "https" {
|
||||
|
||||
export class Agent extends http.Agent {
|
||||
constructor(options?: AgentOptions);
|
||||
options: AgentOptions;
|
||||
}
|
||||
|
||||
export class Server extends tls.Server {
|
||||
|
||||
@@ -1497,6 +1497,8 @@ namespace https_tests {
|
||||
|
||||
https.request('http://www.example.com/xyz');
|
||||
|
||||
https.globalAgent.options.ca = [];
|
||||
|
||||
{
|
||||
const server = new https.Server();
|
||||
|
||||
|
||||
Vendored
+3
-1
@@ -1081,7 +1081,9 @@ declare module "https" {
|
||||
secureProtocol?: string;
|
||||
}
|
||||
|
||||
export interface Agent extends http.Agent { }
|
||||
export interface Agent extends http.Agent {
|
||||
options?: AgentOptions;
|
||||
}
|
||||
|
||||
export interface AgentOptions extends http.AgentOptions {
|
||||
pfx?: any;
|
||||
|
||||
@@ -561,6 +561,8 @@ namespace https_tests {
|
||||
});
|
||||
|
||||
https.request('http://www.example.com/xyz');
|
||||
|
||||
https.globalAgent.options.ca = [];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
Vendored
+3
-1
@@ -1468,7 +1468,9 @@ declare module "https" {
|
||||
secureProtocol?: string;
|
||||
}
|
||||
|
||||
export interface Agent extends http.Agent { }
|
||||
export interface Agent extends http.Agent {
|
||||
options?: AgentOptions;
|
||||
}
|
||||
|
||||
export interface AgentOptions extends http.AgentOptions {
|
||||
pfx?: any;
|
||||
|
||||
@@ -1015,6 +1015,8 @@ namespace https_tests {
|
||||
});
|
||||
|
||||
https.request('http://www.example.com/xyz');
|
||||
|
||||
https.globalAgent.options.ca = [];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
Vendored
+3
-1
@@ -1528,7 +1528,9 @@ declare module "https" {
|
||||
secureProtocol?: string;
|
||||
}
|
||||
|
||||
export interface Agent extends http.Agent { }
|
||||
export interface Agent extends http.Agent {
|
||||
options?: AgentOptions;
|
||||
}
|
||||
|
||||
export interface AgentOptions extends http.AgentOptions {
|
||||
pfx?: any;
|
||||
|
||||
@@ -1093,6 +1093,8 @@ namespace https_tests {
|
||||
});
|
||||
|
||||
https.request('http://www.example.com/xyz');
|
||||
|
||||
https.globalAgent.options.ca = [];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
Vendored
+1
@@ -1758,6 +1758,7 @@ declare module "https" {
|
||||
|
||||
export class Agent extends http.Agent {
|
||||
constructor(options?: AgentOptions);
|
||||
options: AgentOptions;
|
||||
}
|
||||
|
||||
export class Server extends tls.Server {
|
||||
|
||||
@@ -1471,6 +1471,8 @@ namespace https_tests {
|
||||
|
||||
https.request('http://www.example.com/xyz');
|
||||
|
||||
https.globalAgent.options.ca = [];
|
||||
|
||||
{
|
||||
const server = new https.Server();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user