@@ -460,10 +460,14 @@ Options:
460
460
461
461
- ` host ` : A domain name or IP address of the server to issue the request to.
462
462
Defaults to ` 'localhost' ` .
463
- - ` hostname ` : To support ` url.parse() ` ` hostname ` is preferred over ` host `
463
+ - ` hostname ` : Alias for ` host ` . To support ` url.parse() ` ` hostname ` is
464
+ preferred over ` host ` .
465
+ - ` family ` : IP address family to use when resolving ` host ` and ` hostname ` .
466
+ Valid values are ` 4 ` or ` 6 ` . When unspecified, both IP v4 and v6 will be
467
+ used.
464
468
- ` port ` : Port of remote server. Defaults to 80.
465
469
- ` localAddress ` : Local interface to bind for network connections.
466
- - ` socketPath ` : Unix Domain Socket (use one of host: port or socketPath)
470
+ - ` socketPath ` : Unix Domain Socket (use one of host: port or socketPath).
467
471
- ` method ` : A string specifying the HTTP request method. Defaults to ` 'GET' ` .
468
472
- ` path ` : Request path. Defaults to ` '/' ` . Should include query string if any.
469
473
E.G. ` '/index.html?page=12' ` . An exception is thrown when the request path
@@ -474,7 +478,7 @@ Options:
474
478
Authorization header.
475
479
- ` agent ` : Controls [ Agent] [ ] behavior. When an Agent is used request will
476
480
default to ` Connection: keep-alive ` . Possible values:
477
- - ` undefined ` (default): use [ global Agent ] [ ] for this host and port.
481
+ - ` undefined ` (default): use [ globalAgent ] [ ] for this host and port.
478
482
- ` Agent ` object: explicitly use the passed in ` Agent ` .
479
483
- ` false ` : opts out of connection pooling with an Agent, defaults request to
480
484
` Connection: close ` .
@@ -1069,7 +1073,7 @@ authentication details.
1069
1073
[ EventEmitter ] : events.html#events_class_events_eventemitter
1070
1074
[ Readable Stream ] : stream.html#stream_class_stream_readable
1071
1075
[ Writable Stream ] : stream.html#stream_class_stream_writable
1072
- [ global Agent ] : #http_http_globalagent
1076
+ [ globalAgent ] : #http_http_globalagent
1073
1077
[ http.ClientRequest ] : #http_class_http_clientrequest
1074
1078
[ http.IncomingMessage ] : #http_http_incomingmessage
1075
1079
[ http.ServerResponse ] : #http_class_http_serverresponse
0 commit comments