| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d576e17 commit e5c2059
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -740,8 +740,8 @@ changes: | |||
| 740 | 740 | ||
| 741 | 741 | * {Object} | |
| 742 | 742 | * `execArgv` {Array} List of string arguments passed to the Node.js | |
| 743 | - executable. (Default=`process.execArgv`) | ||
| 744 | - * `exec` {string} File path to worker file. (Default=`process.argv[1]`) | ||
| 743 | + executable. **Default:** `process.execArgv` | ||
| 744 | + * `exec` {string} File path to worker file. **Default:** `process.argv[1]` | ||
| 745 | 745 | * `args` {Array} String arguments passed to worker. | |
| 746 | 746 | **Default:** `process.argv.slice(2)` | |
| 747 | 747 | * `silent` {boolean} Whether or not to send output to parent's stdio. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,11 +141,11 @@ changes: | |||
| 141 | 141 | - `hints` {number} One or more [supported `getaddrinfo` flags][]. Multiple | |
| 142 | 142 | flags may be passed by bitwise `OR`ing their values. | |
| 143 | 143 | - `all` {boolean} When `true`, the callback returns all resolved addresses in | |
| 144 | - an array. Otherwise, returns a single address. Defaults to `false`. | ||
| 144 | + an array. Otherwise, returns a single address. **Default:** `false` | ||
| 145 | 145 | - `verbatim` {boolean} When `true`, the callback receives IPv4 and IPv6 | |
| 146 | 146 | addresses in the order the DNS resolver returned them. When `false`, | |
| 147 | 147 | IPv4 addresses are placed before IPv6 addresses. | |
| 148 | - Default: currently `false` (addresses are reordered) but this is expected | ||
| 148 | + **Default:** currently `false` (addresses are reordered) but this is expected | ||
| 149 | 149 | to change in the not too distant future. | |
| 150 | 150 | New code should use `{ verbatim: true }`. | |
| 151 | 151 | - `callback` {Function} | |
@@ -245,7 +245,7 @@ Promise for an object with `hostname` and `service` properties. | |||
| 245 | 245 | added: v0.1.27 | |
| 246 | 246 | --> | |
| 247 | 247 | - `hostname` {string} Hostname to resolve. | |
| 248 | - - `rrtype` {string} Resource record type. Default: `'A'`. | ||
| 248 | + - `rrtype` {string} Resource record type. **Default:** `'A'` | ||
| 249 | 249 | - `callback` {Function} | |
| 250 | 250 | - `err` {Error} | |
| 251 | 251 | - `records` {string[] | Object[] | Object} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -365,7 +365,7 @@ added: v8.4.0 | |||
| 365 | 365 | * `exclusive` {boolean} When `true` and `parent` identifies a parent Stream, | |
| 366 | 366 | the created stream is made the sole direct dependency of the parent, with | |
| 367 | 367 | all other existing dependents made a dependent of the newly created stream. | |
| 368 | - Defaults to `false`. | ||
| 368 | + **Default:** `false` | ||
| 369 | 369 | * `parent` {number} Specifies the numeric identifier of a stream the newly | |
| 370 | 370 | created stream is dependent on. | |
| 371 | 371 | * `weight` {number} Specifies the relative dependency of a stream in relation | |
@@ -415,7 +415,7 @@ added: v8.4.0 | |||
| 415 | 415 | --> | |
| 416 | 416 | ||
| 417 | 417 | * stream {Http2Stream} | |
| 418 | - * code {number} Unsigned 32-bit integer identifying the error code. Defaults to | ||
| 418 | + * code {number} Unsigned 32-bit integer identifying the error code. **Default:** | ||
| 419 | 419 | `http2.constant.NGHTTP2_NO_ERROR` (`0x00`) | |
| 420 | 420 | * Returns: {undefined} | |
| 421 | 421 | ||
@@ -444,7 +444,7 @@ added: v8.4.0 | |||
| 444 | 444 | * `graceful` {boolean} `true` to attempt a polite shutdown of the | |
| 445 | 445 | `Http2Session`. | |
| 446 | 446 | * `errorCode` {number} The HTTP/2 [error code][] to return. Note that this is | |
| 447 | - *not* the same thing as an HTTP Response Status Code. Defaults to `0x00` | ||
| 447 | + *not* the same thing as an HTTP Response Status Code. **Default:** `0x00` | ||
| 448 | 448 | (No Error). | |
| 449 | 449 | * `lastStreamID` {number} The Stream ID of the last successfully processed | |
| 450 | 450 | `Http2Stream` on this `Http2Session`. | |
@@ -522,8 +522,8 @@ added: v8.4.0 | |||
| 522 | 522 | * `options` {Object} | |
| 523 | 523 | * `exclusive` {boolean} When `true` and `parent` identifies a parent Stream, | |
| 524 | 524 | the given stream is made the sole direct dependency of the parent, with | |
| 525 | - all other existing dependents made a dependent of the given stream. Defaults | ||
| 526 | - to `false`. | ||
| 525 | + all other existing dependents made a dependent of the given stream. **Default:** | ||
| 526 | + `false` | ||
| 527 | 527 | * `parent` {number} Specifies the numeric identifier of a stream the given | |
| 528 | 528 | stream is dependent on. | |
| 529 | 529 | * `weight` {number} Specifies the relative dependency of a stream in relation | |
@@ -734,8 +734,8 @@ added: v8.4.0 | |||
| 734 | 734 | * `options` {Object} | |
| 735 | 735 | * `exclusive` {boolean} When `true` and `parent` identifies a parent Stream, | |
| 736 | 736 | this stream is made the sole direct dependency of the parent, with | |
| 737 | - all other existing dependents made a dependent of this stream. Defaults | ||
| 738 | - to `false`. | ||
| 737 | + all other existing dependents made a dependent of this stream. **Default:** | ||
| 738 | + `false` | ||
| 739 | 739 | * `parent` {number} Specifies the numeric identifier of a stream this stream | |
| 740 | 740 | is dependent on. | |
| 741 | 741 | * `weight` {number} Specifies the relative dependency of a stream in relation | |
@@ -764,7 +764,7 @@ calling `http2stream.rstStream()`, or `http2stream.destroy()`. Will be | |||
| 764 | 764 | added: v8.4.0 | |
| 765 | 765 | --> | |
| 766 | 766 | ||
| 767 | - * code {number} Unsigned 32-bit integer identifying the error code. Defaults to | ||
| 767 | + * code {number} Unsigned 32-bit integer identifying the error code. **Default:** | ||
| 768 | 768 | `http2.constant.NGHTTP2_NO_ERROR` (`0x00`) | |
| 769 | 769 | * Returns: {undefined} | |
| 770 | 770 | ||
@@ -986,7 +986,7 @@ added: v8.4.0 | |||
| 986 | 986 | * `exclusive` {boolean} When `true` and `parent` identifies a parent Stream, | |
| 987 | 987 | the created stream is made the sole direct dependency of the parent, with | |
| 988 | 988 | all other existing dependents made a dependent of the newly created stream. | |
| 989 | - Defaults to `false`. | ||
| 989 | + **Default:** `false` | ||
| 990 | 990 | * `parent` {number} Specifies the numeric identifier of a stream the newly | |
| 991 | 991 | created stream is dependent on. | |
| 992 | 992 | * `callback` {Function} Callback that is called once the push stream has been | |
@@ -1063,14 +1063,14 @@ fields. | |||
| 1063 | 1063 | added: v8.4.0 | |
| 1064 | 1064 | --> | |
| 1065 | 1065 | ||
| 1066 | - * `fd` {number} A readable file descriptor | ||
| 1066 | + * `fd` {number} A readable file descriptor. | ||
| 1067 | 1067 | * `headers` {[Headers Object][]} | |
| 1068 | 1068 | * `options` {Object} | |
| 1069 | 1069 | * `statCheck` {Function} | |
| 1070 | 1070 | * `getTrailers` {Function} Callback function invoked to collect trailer | |
| 1071 | 1071 | headers. | |
| 1072 | - * `offset` {number} The offset position at which to begin reading | ||
| 1073 | - * `length` {number} The amount of data from the fd to send | ||
| 1072 | + * `offset` {number} The offset position at which to begin reading. | ||
| 1073 | + * `length` {number} The amount of data from the fd to send. | ||
| 1074 | 1074 | ||
| 1075 | 1075 | Initiates a response whose data is read from the given file descriptor. No | |
| 1076 | 1076 | validation is performed on the given file descriptor. If an error occurs while | |
@@ -1152,11 +1152,11 @@ added: v8.4.0 | |||
| 1152 | 1152 | * `options` {Object} | |
| 1153 | 1153 | * `statCheck` {Function} | |
| 1154 | 1154 | * `onError` {Function} Callback function invoked in the case of an | |
| 1155 | - Error before send | ||
| 1155 | + Error before send. | ||
| 1156 | 1156 | * `getTrailers` {Function} Callback function invoked to collect trailer | |
| 1157 | 1157 | headers. | |
| 1158 | - * `offset` {number} The offset position at which to begin reading | ||
| 1159 | - * `length` {number} The amount of data from the fd to send | ||
| 1158 | + * `offset` {number} The offset position at which to begin reading. | ||
| 1159 | + * `length` {number} The amount of data from the fd to send. | ||
| 1160 | 1160 | ||
| 1161 | 1161 | Sends a regular file as the response. The `path` must specify a regular file | |
| 1162 | 1162 | or an `'error'` event will be emitted on the `Http2Stream` object. | |
@@ -1474,13 +1474,13 @@ added: v8.4.0 | |||
| 1474 | 1474 | ||
| 1475 | 1475 | * `options` {Object} | |
| 1476 | 1476 | * `maxDeflateDynamicTableSize` {number} Sets the maximum dynamic table size | |
| 1477 | - for deflating header fields. Defaults to 4Kib. | ||
| 1477 | + for deflating header fields. **Default:** `4Kib` | ||
| 1478 | 1478 | * `maxSendHeaderBlockLength` {number} Sets the maximum allowed size for a | |
| 1479 | 1479 | serialized, compressed block of headers. Attempts to send headers that | |
| 1480 | 1480 | exceed this limit will result in a `'frameError'` event being emitted | |
| 1481 | 1481 | and the stream being closed and destroyed. | |
| 1482 | 1482 | * `paddingStrategy` {number} Identifies the strategy used for determining the | |
| 1483 | - amount of padding to use for HEADERS and DATA frames. Defaults to | ||
| 1483 | + amount of padding to use for HEADERS and DATA frames. **Default:** | ||
| 1484 | 1484 | `http2.constants.PADDING_STRATEGY_NONE`. Value may be one of: | |
| 1485 | 1485 | * `http2.constants.PADDING_STRATEGY_NONE` - Specifies that no padding is | |
| 1486 | 1486 | to be applied. | |
@@ -1492,8 +1492,8 @@ added: v8.4.0 | |||
| 1492 | 1492 | amount of padding. | |
| 1493 | 1493 | * `peerMaxConcurrentStreams` {number} Sets the maximum number of concurrent | |
| 1494 | 1494 | streams for the remote peer as if a SETTINGS frame had been received. Will | |
| 1495 | - be overridden if the remote peer sets its own value for | ||
| 1496 | - `maxConcurrentStreams`. Defaults to 100. | ||
| 1495 | + be overridden if the remote peer sets its own value for. | ||
| 1496 | + `maxConcurrentStreams`. **Default** `100` | ||
| 1497 | 1497 | * `selectPadding` {Function} When `options.paddingStrategy` is equal to | |
| 1498 | 1498 | `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function | |
| 1499 | 1499 | used to determine the padding. See [Using options.selectPadding][]. | |
@@ -1529,16 +1529,16 @@ added: v8.4.0 | |||
| 1529 | 1529 | ||
| 1530 | 1530 | * `options` {Object} | |
| 1531 | 1531 | * `allowHTTP1` {boolean} Incoming client connections that do not support | |
| 1532 | - HTTP/2 will be downgraded to HTTP/1.x when set to `true`. The default value | ||
| 1533 | - is `false`. See the [`'unknownProtocol'`][] event. See [ALPN negotiation][]. | ||
| 1532 | + HTTP/2 will be downgraded to HTTP/1.x when set to `true`. **Default:** | ||
| 1533 | + `false`. See the [`'unknownProtocol'`][] event. See [ALPN negotiation][]. | ||
| 1534 | 1534 | * `maxDeflateDynamicTableSize` {number} Sets the maximum dynamic table size | |
| 1535 | - for deflating header fields. Defaults to 4Kib. | ||
| 1535 | + for deflating header fields. **Default:** `4Kib` | ||
| 1536 | 1536 | * `maxSendHeaderBlockLength` {number} Sets the maximum allowed size for a | |
| 1537 | 1537 | serialized, compressed block of headers. Attempts to send headers that | |
| 1538 | 1538 | exceed this limit will result in a `'frameError'` event being emitted | |
| 1539 | 1539 | and the stream being closed and destroyed. | |
| 1540 | 1540 | * `paddingStrategy` {number} Identifies the strategy used for determining the | |
| 1541 | - amount of padding to use for HEADERS and DATA frames. Defaults to | ||
| 1541 | + amount of padding to use for HEADERS and DATA frames. **Default:** | ||
| 1542 | 1542 | `http2.constants.PADDING_STRATEGY_NONE`. Value may be one of: | |
| 1543 | 1543 | * `http2.constants.PADDING_STRATEGY_NONE` - Specifies that no padding is | |
| 1544 | 1544 | to be applied. | |
@@ -1551,7 +1551,7 @@ added: v8.4.0 | |||
| 1551 | 1551 | * `peerMaxConcurrentStreams` {number} Sets the maximum number of concurrent | |
| 1552 | 1552 | streams for the remote peer as if a SETTINGS frame had been received. Will | |
| 1553 | 1553 | be overridden if the remote peer sets its own value for | |
| 1554 | - `maxConcurrentStreams`. Defaults to 100. | ||
| 1554 | + `maxConcurrentStreams`. **Default:** `100` | ||
| 1555 | 1555 | * `selectPadding` {Function} When `options.paddingStrategy` is equal to | |
| 1556 | 1556 | `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function | |
| 1557 | 1557 | used to determine the padding. See [Using options.selectPadding][]. | |
@@ -1595,7 +1595,7 @@ added: v8.4.0 | |||
| 1595 | 1595 | * `authority` {string|URL} | |
| 1596 | 1596 | * `options` {Object} | |
| 1597 | 1597 | * `maxDeflateDynamicTableSize` {number} Sets the maximum dynamic table size | |
| 1598 | - for deflating header fields. Defaults to 4Kib. | ||
| 1598 | + for deflating header fields. **Default:** `4Kib` | ||
| 1599 | 1599 | * `maxReservedRemoteStreams` {number} Sets the maximum number of reserved push | |
| 1600 | 1600 | streams the client will accept at any given time. Once the current number of | |
| 1601 | 1601 | currently reserved push streams exceeds reaches this limit, new push streams | |
@@ -1605,7 +1605,7 @@ added: v8.4.0 | |||
| 1605 | 1605 | exceed this limit will result in a `'frameError'` event being emitted | |
| 1606 | 1606 | and the stream being closed and destroyed. | |
| 1607 | 1607 | * `paddingStrategy` {number} Identifies the strategy used for determining the | |
| 1608 | - amount of padding to use for HEADERS and DATA frames. Defaults to | ||
| 1608 | + amount of padding to use for HEADERS and DATA frames. **Default:** | ||
| 1609 | 1609 | `http2.constants.PADDING_STRATEGY_NONE`. Value may be one of: | |
| 1610 | 1610 | * `http2.constants.PADDING_STRATEGY_NONE` - Specifies that no padding is | |
| 1611 | 1611 | to be applied. | |
@@ -1618,7 +1618,7 @@ added: v8.4.0 | |||
| 1618 | 1618 | * `peerMaxConcurrentStreams` {number} Sets the maximum number of concurrent | |
| 1619 | 1619 | streams for the remote peer as if a SETTINGS frame had been received. Will | |
| 1620 | 1620 | be overridden if the remote peer sets its own value for | |
| 1621 | - `maxConcurrentStreams`. Defaults to 100. | ||
| 1621 | + `maxConcurrentStreams`. **Default:** `100` | ||
| 1622 | 1622 | * `selectPadding` {Function} When `options.paddingStrategy` is equal to | |
| 1623 | 1623 | `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function | |
| 1624 | 1624 | used to determine the padding. See [Using options.selectPadding][]. | |
@@ -1707,7 +1707,7 @@ console.log(packed.toString('base64')); | |||
| 1707 | 1707 | added: v8.4.0 | |
| 1708 | 1708 | --> | |
| 1709 | 1709 | ||
| 1710 | - * `buf` {Buffer|Uint8Array} The packed settings | ||
| 1710 | + * `buf` {Buffer|Uint8Array} The packed settings. | ||
| 1711 | 1711 | * Returns: {[Settings Object][]} | |
| 1712 | 1712 | ||
| 1713 | 1713 | Returns a [Settings Object][] containing the deserialized settings from the | |
@@ -1757,15 +1757,15 @@ These objects are ordinary JavaScript objects containing the following | |||
| 1757 | 1757 | properties. | |
| 1758 | 1758 | ||
| 1759 | 1759 | * `headerTableSize` {number} Specifies the maximum number of bytes used for | |
| 1760 | - header compression. The default value is 4,096 octets. The minimum allowed | ||
| 1760 | + header compression. **Default:** `4,096 octets`. The minimum allowed | ||
| 1761 | 1761 | value is 0. The maximum allowed value is 2<sup>32</sup>-1. | |
| 1762 | 1762 | * `enablePush` {boolean} Specifies `true` if HTTP/2 Push Streams are to be | |
| 1763 | 1763 | permitted on the `Http2Session` instances. | |
| 1764 | 1764 | * `initialWindowSize` {number} Specifies the *senders* initial window size | |
| 1765 | - for stream-level flow control. The default value is 65,535 bytes. The minimum | ||
| 1765 | + for stream-level flow control. **Default:** `65,535 bytes`. The minimum | ||
| 1766 | 1766 | allowed value is 0. The maximum allowed value is 2<sup>32</sup>-1. | |
| 1767 | 1767 | * `maxFrameSize` {number} Specifies the size of the largest frame payload. | |
| 1768 | - The default and the minimum allowed value is 16,384 bytes. The maximum | ||
| 1768 | + **Default:** `16,384 bytes`. The minimum allowed value is 16,384. The maximum | ||
| 1769 | 1769 | allowed value is 2<sup>24</sup>-1. | |
| 1770 | 1770 | * `maxConcurrentStreams` {number} Specifies the maximum number of concurrent | |
| 1771 | 1771 | streams permitted on an `Http2Session`. There is no default value which | |
@@ -2478,7 +2478,7 @@ added: v8.4.0 | |||
| 2478 | 2478 | --> | |
| 2479 | 2479 | ||
| 2480 | 2480 | * `name` {string} | |
| 2481 | - * `value` {string | string[]} | ||
| 2481 | + * `value` {string|string[]} | ||
| 2482 | 2482 | ||
| 2483 | 2483 | Sets a single header value for implicit headers. If this header already exists | |
| 2484 | 2484 | in the to-be-sent headers, its value will be replaced. Use an array of strings | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -250,10 +250,10 @@ added: v0.11.14 | |||
| 250 | 250 | * `path` {string} Will be ignored if `port` is specified. See | |
| 251 | 251 | [Identifying paths for IPC connections][]. | |
| 252 | 252 | * `backlog` {number} Common parameter of [`server.listen()`][] | |
| 253 | - functions | ||
| 254 | - * `exclusive` {boolean} Default to `false` | ||
| 253 | + functions. | ||
| 254 | + * `exclusive` {boolean} **Default:** `false` | ||
| 255 | 255 | * `callback` {Function} Common parameter of [`server.listen()`][] | |
| 256 | - functions | ||
| 256 | + functions. | ||
| 257 | 257 | * Returns: {net.Server} | |
| 258 | 258 | ||
| 259 | 259 | If `port` is specified, it behaves the same as | |
@@ -283,8 +283,8 @@ added: v0.1.90 | |||
| 283 | 283 | ||
| 284 | 284 | * `path` {String} Path the server should listen to. See | |
| 285 | 285 | [Identifying paths for IPC connections][]. | |
| 286 | - * `backlog` {number} Common parameter of [`server.listen()`][] functions | ||
| 287 | - * `callback` {Function} Common parameter of [`server.listen()`][] functions | ||
| 286 | + * `backlog` {number} Common parameter of [`server.listen()`][] functions. | ||
| 287 | + * `callback` {Function} Common parameter of [`server.listen()`][] functions. | ||
| 288 | 288 | * Returns: {net.Server} | |
| 289 | 289 | ||
| 290 | 290 | Start a [IPC][] server listening for connections on the given `path`. | |
@@ -295,8 +295,8 @@ added: v0.1.90 | |||
| 295 | 295 | --> | |
| 296 | 296 | * `port` {number} | |
| 297 | 297 | * `host` {string} | |
| 298 | - * `backlog` {number} Common parameter of [`server.listen()`][] functions | ||
| 299 | - * `callback` {Function} Common parameter of [`server.listen()`][] functions | ||
| 298 | + * `backlog` {number} Common parameter of [`server.listen()`][] functions. | ||
| 299 | + * `callback` {Function} Common parameter of [`server.listen()`][] functions. | ||
| 300 | 300 | * Returns: {net.Server} | |
| 301 | 301 | ||
| 302 | 302 | Start a TCP server listening for connections on the given `port` and `host`. | |
@@ -385,11 +385,11 @@ Creates a new socket object. | |||
| 385 | 385 | the given file descriptor, otherwise a new socket will be created. | |
| 386 | 386 | * `allowHalfOpen` {boolean} Indicates whether half-opened TCP connections | |
| 387 | 387 | are allowed. See [`net.createServer()`][] and the [`'end'`][] event | |
| 388 | - for details. Defaults to `false`. | ||
| 388 | + for details. **Default:** `false` | ||
| 389 | 389 | * `readable` {boolean} Allow reads on the socket when an `fd` is passed, | |
| 390 | - otherwise ignored. Defaults to `false`. | ||
| 390 | + otherwise ignored. **Default:** `false` | ||
| 391 | 391 | * `writable` {boolean} Allow writes on the socket when an `fd` is passed, | |
| 392 | - otherwise ignored. Defaults to `false`. | ||
| 392 | + otherwise ignored. **Default:** `false` | ||
| 393 | 393 | * Returns: {net.Socket} | |
| 394 | 394 | ||
| 395 | 395 | The newly created socket can be either a TCP socket or a streaming [IPC][] | |
@@ -581,12 +581,12 @@ this only when implementing a custom Socket. | |||
| 581 | 581 | For TCP connections, available `options` are: | |
| 582 | 582 | ||
| 583 | 583 | * `port` {number} Required. Port the socket should connect to. | |
| 584 | - * `host` {string} Host the socket should connect to. Defaults to `'localhost'`. | ||
| 584 | + * `host` {string} Host the socket should connect to. **Default:** `'localhost'` | ||
| 585 | 585 | * `localAddress` {string} Local address the socket should connect from. | |
| 586 | 586 | * `localPort` {number} Local port the socket should connect from. | |
| 587 | - * `family` {number}: Version of IP stack, can be either 4 or 6. Defaults to 4. | ||
| 587 | + * `family` {number}: Version of IP stack, can be either 4 or 6. **Default:** `4` | ||
| 588 | 588 | * `hints` {number} Optional [`dns.lookup()` hints][]. | |
| 589 | - * `lookup` {Function} Custom lookup function. Defaults to [`dns.lookup()`][]. | ||
| 589 | + * `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][] | ||
| 590 | 590 | ||
| 591 | 591 | For [IPC][] connections, available `options` are: | |
| 592 | 592 | ||
@@ -965,9 +965,9 @@ added: v0.1.90 | |||
| 965 | 965 | ||
| 966 | 966 | * `port` {number} Port the socket should connect to. Will be passed to | |
| 967 | 967 | [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]. | |
| 968 | - * `host` {string} Host the socket should connect to. Defaults to `'localhost'`. | ||
| 969 | - Will be passed to | ||
| 968 | + * `host` {string} Host the socket should connect to. Will be passed to | ||
| 970 | 969 | [`socket.connect(port[, host][, connectListener])`][`socket.connect(port, host)`]. | |
| 970 | + **Default:** `'localhost'` | ||
| 971 | 971 | * `connectListener` {Function} Common parameter of the | |
| 972 | 972 | [`net.createConnection()`][] functions, an "once" listener for the | |
| 973 | 973 | `'connect'` event on the initiating socket. Will be passed to | |
@@ -989,12 +989,12 @@ added: v0.5.0 | |||
| 989 | 989 | Creates a new TCP or [IPC][] server. | |
| 990 | 990 | ||
| 991 | 991 | * `options` {Object} | |
| 992 | - * `allowHalfOpen` {boolean} Default to `false`. Indicates whether half-opened | ||
| 993 | - TCP connections are allowed. | ||
| 994 | - * `pauseOnConnect` {boolean} Default to `false`. Indicates whether the socket | ||
| 995 | - should be paused on incoming connections. | ||
| 992 | + * `allowHalfOpen` {boolean} Indicates whether half-opened TCP | ||
| 993 | + connections are allowed. **Default:** `false` | ||
| 994 | + * `pauseOnConnect` {boolean} Indicates whether the socket should be | ||
| 995 | + paused on incoming connections. **Default:** `false` | ||
| 996 | 996 | * `connectionListener` {Function} Automatically set as a listener for the | |
| 997 | - [`'connection'`][] event | ||
| 997 | + [`'connection'`][] event. | ||
| 998 | 998 | * Returns: {net.Server} | |
| 999 | 999 | ||
| 1000 | 1000 | If `allowHalfOpen` is set to `true`, when the other end of the socket | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -401,7 +401,7 @@ added: v6.0.0 | |||
| 401 | 401 | * `options` {Object} | |
| 402 | 402 | * `encoding` {string} Character encoding used to interpret resulting strings. | |
| 403 | 403 | If `encoding` is set to `'buffer'`, the `username`, `shell`, and `homedir` | |
| 404 | - values will be `Buffer` instances. (Default: 'utf8') | ||
| 404 | + values will be `Buffer` instances. **Default:** `'utf8'` | ||
| 405 | 405 | * Returns: {Object} | |
| 406 | 406 | ||
| 407 | 407 | The `os.userInfo()` method returns information about the currently effective | |
| Back | FazBrowse Home | New Git URL |
0 commit comments