summaryrefslogtreecommitdiff
path: root/doc/api/zlib.md
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2016-11-15 09:56:15 -0800
committerSam Roberts <vieuxtech@gmail.com>2016-11-18 09:26:38 -0800
commita03074afe4c7f104a1c7a7c811c39c884b9045af (patch)
tree2f66f6d438fb39499068220e1783849affc4e035 /doc/api/zlib.md
parent10e5e7abac99ffd331e44e53b16f3faf7a7b9848 (diff)
downloadandroid-node-v8-a03074afe4c7f104a1c7a7c811c39c884b9045af.tar.gz
android-node-v8-a03074afe4c7f104a1c7a7c811c39c884b9045af.tar.bz2
android-node-v8-a03074afe4c7f104a1c7a7c811c39c884b9045af.zip
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>
Diffstat (limited to 'doc/api/zlib.md')
-rw-r--r--doc/api/zlib.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/api/zlib.md b/doc/api/zlib.md
index be108133da..73bcf8e017 100644
--- a/doc/api/zlib.md
+++ b/doc/api/zlib.md
@@ -9,7 +9,7 @@ Deflate/Inflate. It can be accessed using:
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:
```js
@@ -46,12 +46,12 @@ zlib.unzip(buffer, (err, buffer) => {
## Compressing HTTP requests and responses
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).
The HTTP [`Accept-Encoding`][] header is used within an http request to identify
-the compression encodings accepted by the client. The [`Content-Encoding`][]
-header is used to identify the compression encodings actually applied to a
+the compression encodings accepted by the client. The [`Content-Encoding`][]
+header is used to identify the compression encodings actually applied to a
message.
**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
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
directly from the module is currently still possible but should be considered
deprecated.
@@ -444,8 +444,8 @@ Returns a new [Unzip][] object with an [options][].
<!--type=misc-->
-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
+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
supplied callback with `callback(error, result)`.
Every method has a `*Sync` counterpart, which accept the same arguments, but