Add http.Agent to node.js typings

This commit is contained in:
Rogier Schouten
2015-03-04 13:57:57 +01:00
parent bb465f2cc7
commit 369935805c
3 changed files with 81 additions and 2 deletions
+9
View File
@@ -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;
}
////////////////////////////////////////////////////