mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
http.RequestOptions.agent can also be a boolean
https://nodejs.org/api/http.html#http_http_request_options_callback
This commit is contained in:
1 parent
78ba6e4154
commit
1ebf010a1e
2 files changed
+11
-1
No files matched your search
@@ -226,6 +226,16 @@ module http_tests {
|
||||
});
|
||||
|
||||
var agent: http.Agent = http.globalAgent;
|
||||
|
||||
http.request({
|
||||
agent: false
|
||||
});
|
||||
http.request({
|
||||
agent: agent
|
||||
});
|
||||
http.request({
|
||||
agent: undefined
|
||||
});
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user