Browse Source

doc: strip trailing whitespace

PR-URL: https://github.com/nodejs/node/pull/9620
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v7.x
Sam Roberts 8 years ago
committed by Anna Henningsen
parent
commit
8bf42b4ec4
No known key found for this signature in database GPG Key ID: D8B9F5AEAE84E4CF
  1. 6
      doc/api/crypto.md
  2. 2
      doc/api/net.md
  3. 2
      doc/api/v8.md
  4. 14
      doc/api/zlib.md

6
doc/api/crypto.md

@ -1620,7 +1620,7 @@ See the reference for other recommendations and details.
## Crypto Constants ## Crypto Constants
The following constants exported by `crypto.constants` apply to various uses of The following constants exported by `crypto.constants` apply to various uses of
the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL.
### OpenSSL Options ### OpenSSL Options
@ -1639,13 +1639,13 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL.
<tr> <tr>
<td><code>SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION</code></td> <td><code>SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION</code></td>
<td>Allows legacy insecure renegotiation between OpenSSL and unpatched <td>Allows legacy insecure renegotiation between OpenSSL and unpatched
clients or servers. See clients or servers. See
https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.</td> https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.</td>
</tr> </tr>
<tr> <tr>
<td><code>SSL_OP_CIPHER_SERVER_PREFERENCE</code></td> <td><code>SSL_OP_CIPHER_SERVER_PREFERENCE</code></td>
<td>Uses the server's preferences instead of the clients when selecting a <td>Uses the server's preferences instead of the clients when selecting a
cipher. See cipher. See
https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.</td> https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html.</td>
</tr> </tr>
<tr> <tr>

2
doc/api/net.md

@ -765,7 +765,7 @@ A factory function, which returns a new [`net.Socket`][] and automatically
connects with the supplied `options`. connects with the supplied `options`.
The options are passed to both the [`net.Socket`][] constructor and the The options are passed to both the [`net.Socket`][] constructor and the
[`socket.connect`][] method. [`socket.connect`][] method.
Passing `timeout` as an option will call [`socket.setTimeout()`][] after the socket is created, but before it is connecting. Passing `timeout` as an option will call [`socket.setTimeout()`][] after the socket is created, but before it is connecting.

2
doc/api/v8.md

@ -101,7 +101,7 @@ For example:
added: v1.0.0 added: v1.0.0
--> -->
The `v8.setFlagsFromString()` method can be used to programmatically set The `v8.setFlagsFromString()` method can be used to programmatically set
V8 command line flags. This method should be used with care. Changing settings V8 command line flags. This method should be used with care. Changing settings
after the VM has started may result in unpredictable behavior, including after the VM has started may result in unpredictable behavior, including
crashes and data loss; or it may simply do nothing. crashes and data loss; or it may simply do nothing.

14
doc/api/zlib.md

@ -9,7 +9,7 @@ Deflate/Inflate. It can be accessed using:
const zlib = require('zlib'); const zlib = require('zlib');
``` ```
Compressing or decompressing a stream (such as a file) can be accomplished by Compressing or decompressing a stream (such as a file) can be accomplished by
piping the source stream data through a `zlib` stream into a destination stream: piping the source stream data through a `zlib` stream into a destination stream:
```js ```js
@ -46,12 +46,12 @@ zlib.unzip(buffer, (err, buffer) => {
## Compressing HTTP requests and responses ## Compressing HTTP requests and responses
The `zlib` module can be used to implement support for the `gzip` and `deflate` The `zlib` module can be used to implement support for the `gzip` and `deflate`
content-encoding mechanisms defined by content-encoding mechanisms defined by
[HTTP](https://tools.ietf.org/html/rfc7230#section-4.2). [HTTP](https://tools.ietf.org/html/rfc7230#section-4.2).
The HTTP [`Accept-Encoding`][] header is used within an http request to identify The HTTP [`Accept-Encoding`][] header is used within an http request to identify
the compression encodings accepted by the client. The [`Content-Encoding`][] the compression encodings accepted by the client. The [`Content-Encoding`][]
header is used to identify the compression encodings actually applied to a header is used to identify the compression encodings actually applied to a
message. message.
**Note: the examples given below are drastically simplified to show **Note: the examples given below are drastically simplified to show
@ -230,7 +230,7 @@ not surprising. This section is taken almost directly from the
[zlib documentation][]. See <http://zlib.net/manual.html#Constants> for more [zlib documentation][]. See <http://zlib.net/manual.html#Constants> for more
details. details.
*Note*: Previously, the constants were available directly from *Note*: Previously, the constants were available directly from
`require('zlib')`, for instance `zlib.Z_NO_FLUSH`. Accessing the constants `require('zlib')`, for instance `zlib.Z_NO_FLUSH`. Accessing the constants
directly from the module is currently still possible but should be considered directly from the module is currently still possible but should be considered
deprecated. deprecated.
@ -444,8 +444,8 @@ Returns a new [Unzip][] object with an [options][].
<!--type=misc--> <!--type=misc-->
All of these take a [Buffer][] or string as the first argument, an optional All of these take a [Buffer][] or string as the first argument, an optional
second argument to supply options to the `zlib` classes and will call the second argument to supply options to the `zlib` classes and will call the
supplied callback with `callback(error, result)`. supplied callback with `callback(error, result)`.
Every method has a `*Sync` counterpart, which accept the same arguments, but Every method has a `*Sync` counterpart, which accept the same arguments, but

Loading…
Cancel
Save