mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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:
@@ -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