mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-17 13:00:35 +08:00
Add http.Agent to node.js typings
This commit is contained in:
1 parent
bb465f2cc7
commit
369935805c
3 files changed
+81
-2
No files matched your search
@@ -154,6 +154,15 @@ module http_tests {
|
||||
var code = 100;
|
||||
var codeMessage = http.STATUS_CODES['400'];
|
||||
var codeMessage = http.STATUS_CODES[400];
|
||||
|
||||
var agent: http.Agent = new http.Agent({
|
||||
keepAlive: true,
|
||||
keepAliveMsecs: 10000,
|
||||
maxSockets: Infinity,
|
||||
maxFreeSockets: 256
|
||||
});
|
||||
|
||||
var agent: http.Agent = http.globalAgent;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user