Protocol to use. Defaults to 'http:'.
Alias for host. To support url.parse() hostname is preferred over host.
Alias for host. To support url.parse() hostname is preferred over host.
IP address family to use when resolving host and hostname. Valid values are 4 or 6. When unspecified, both IP v4 and v6 will be used.
Port of remote server. Defaults to 80.
Local interface to bind for network connections.
Unix Domain Socket (use one of host:port or socketPath).
A string specifying the HTTP request method. Defaults to 'GET'.
Request path. Defaults to '/'. Should include query string if any. E.G. '/index.html?page=12'. An exception is thrown when the request path contains illegal characters. Currently, only spaces are rejected but that may change in the future.
An object containing request headers.
Basic authentication i.e. 'user:password' to compute an Authorization header.
Controls Agent behavior. When an Agent is used request will default to Connection: keep-alive. Possible values: TODO
A function that produces a socket/stream to use for the request when the agent option is not used. This can be used to avoid creating a custom Agent class just to override the default createConnection function.
Controls Agent behavior.
Controls Agent behavior. When an Agent is used request will default to Connection: keep-alive. Possible values: TODO
Basic authentication i.e.
Basic authentication i.e. 'user:password' to compute an Authorization header.
A function that produces a socket/stream to use for the request when the agent option is not used.
A function that produces a socket/stream to use for the request when the agent option is not used. This can be used to avoid creating a custom Agent class just to override the default createConnection function.
IP address family to use when resolving host and hostname.
IP address family to use when resolving host and hostname. Valid values are 4 or 6. When unspecified, both IP v4 and v6 will be used.
An object containing request headers.
Alias for host.
Alias for host. To support url.parse() hostname is preferred over host.
Alias for host.
Alias for host. To support url.parse() hostname is preferred over host.
Local interface to bind for network connections.
A string specifying the HTTP request method.
A string specifying the HTTP request method. Defaults to 'GET'.
Request path.
Request path. Defaults to '/'. Should include query string if any. E.G. '/index.html?page=12'. An exception is thrown when the request path contains illegal characters. Currently, only spaces are rejected but that may change in the future.
Port of remote server.
Port of remote server. Defaults to 80.
Protocol to use.
Protocol to use. Defaults to 'http:'.
Unix Domain Socket (use one of host:port or socketPath).
Client Request Options