mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
http: Add agent.get/request methods
This commit is contained in:
@@ -83,10 +83,11 @@ function createConnection(port, host, options) {
|
||||
|
||||
function Agent(options) {
|
||||
http.Agent.call(this, options);
|
||||
this.createConnection = createConnection;
|
||||
}
|
||||
inherits(Agent, http.Agent);
|
||||
Agent.prototype.defaultPort = 443;
|
||||
Agent.prototype.protocol = 'https:';
|
||||
Agent.prototype.createConnection = createConnection;
|
||||
|
||||
var globalAgent = new Agent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user