add agent parameter

This commit is contained in:
eyaozhi
2016-03-10 18:27:24 +08:00
parent 02b4b5c8e0
commit 0a82566305
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -92,6 +92,7 @@ var options: request.Options = {
qs: obj,
json: value,
multipart: value,
agent: new http.Agent(),
agentOptions: value,
agentClass: value,
forever: value,
+1
View File
@@ -86,6 +86,7 @@ declare module 'request' {
qs?: any;
json?: any;
multipart?: RequestPart[] | Multipart;
agent?: http.Agent;
agentOptions?: any;
agentClass?: any;
forever?: any;