You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note: this is not a conformant accept-encoding parser.
98
102
// See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
All of the constants defined in zlib.h are also defined on
218
-
`require('zlib')`.
219
-
In the normal course of operations, you will not need to ever set any of
220
-
these. They are documented here so that their presence is not
221
-
surprising. This section is taken almost directly from the
222
-
[zlib documentation][]. See <http://zlib.net/manual.html#Constants> for more
223
-
details.
221
+
All of the constants defined in `zlib.h` are also defined on `require('zlib')`.
222
+
In the normal course of operations, it will not be necessary to use these
223
+
constants. They are documented so that their presence is not surprising. This
224
+
section is taken almost directly from the [zlib documentation][]. See
225
+
<http://zlib.net/manual.html#Constants> for more details.
224
226
225
227
Allowed flush values.
226
228
@@ -280,19 +282,19 @@ For initializing zalloc, zfree, opaque.
280
282
281
283
<!--type=misc-->
282
284
283
-
Each class takes an options object. All options are optional.
285
+
Each class takes an `options` object. All options are optional.
284
286
285
287
Note that some options are only relevant when compressing, and are
286
288
ignored by the decompression classes.
287
289
288
-
* flush (default: `zlib.Z_NO_FLUSH`)
289
-
* finishFlush (default: `zlib.Z_FINISH`)
290
-
* chunkSize (default: 16*1024)
291
-
* windowBits
292
-
* level (compression only)
293
-
* memLevel (compression only)
294
-
* strategy (compression only)
295
-
* dictionary (deflate/inflate only, empty dictionary by default)
290
+
*`flush` (default: `zlib.Z_NO_FLUSH`)
291
+
*`finishFlush` (default: `zlib.Z_FINISH`)
292
+
*`chunkSize` (default: 16*1024)
293
+
*`windowBits`
294
+
*`level` (compression only)
295
+
*`memLevel` (compression only)
296
+
*`strategy` (compression only)
297
+
*`dictionary` (deflate/inflate only, empty dictionary by default)
296
298
297
299
See the description of `deflateInit2` and `inflateInit2` at
298
300
<http://zlib.net/manual.html#Advanced> for more information on these.
@@ -303,7 +305,7 @@ Compress data using deflate.
303
305
304
306
## Class: zlib.DeflateRaw
305
307
306
-
Compress data using deflate, and do not append a zlib header.
308
+
Compress data using deflate, and do not append a `zlib` header.
307
309
308
310
## Class: zlib.Gunzip
309
311
@@ -338,7 +340,7 @@ class of the compressor/decompressor classes.
338
340
Flush pending data. Don't call this frivolously, premature flushes negatively
339
341
impact the effectiveness of the compression algorithm.
340
342
341
-
Calling this only flushes data from the internal zlib state, and does not
343
+
Calling this only flushes data from the internal `zlib` state, and does not
342
344
perform flushing of any kind on the streams level. Rather, it behaves like a
343
345
normal call to `.write()`, i.e. it will be queued up behind other pending
344
346
writes and will only produce output when data is being read from the stream.
@@ -385,9 +387,9 @@ Returns a new [Unzip][] object with an [options][].
385
387
386
388
<!--type=misc-->
387
389
388
-
All of these take a [Buffer][] or string as the first argument, an optional second
389
-
argument to supply options to the zlib classes and will call the supplied
390
-
callback with `callback(error, result)`.
390
+
All of these take a [Buffer][] or string as the first argument, an optional
391
+
second argument to supply options to the `zlib` classes and will call the
392
+
supplied callback with `callback(error, result)`.
391
393
392
394
Every method has a `*Sync` counterpart, which accept the same arguments, but
393
395
without a callback.
@@ -427,8 +429,8 @@ Decompress a Buffer or string with InflateRaw.
0 commit comments