createHttpAgent function

HttpAgent createHttpAgent([
  1. HttpAgentOptions? options
])

Convenience method for creating instances of "http" module's Agent class.

This is equivalent of Node's new http.Agent([options]).

Implementation

HttpAgent createHttpAgent([HttpAgentOptions? options]) {
  var args = (options == null) ? [] : [options];
  return callConstructor(http.Agent, args);
}