Last change
on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
988 bytes
|
Line | |
---|
1 | # minipass-fetch
|
---|
2 |
|
---|
3 | An implementation of window.fetch in Node.js using Minipass streams
|
---|
4 |
|
---|
5 | This is a fork (or more precisely, a reimplementation) of
|
---|
6 | [node-fetch](http://npm.im/node-fetch). All streams have been replaced
|
---|
7 | with [minipass streams](http://npm.im/minipass).
|
---|
8 |
|
---|
9 | The goal of this module is to stay in sync with the API presented by
|
---|
10 | `node-fetch`, with the exception of the streaming interface provided.
|
---|
11 |
|
---|
12 | ## Why
|
---|
13 |
|
---|
14 | Minipass streams are faster and more deterministic in their timing contract
|
---|
15 | than node-core streams, making them a better fit for many server-side use
|
---|
16 | cases.
|
---|
17 |
|
---|
18 | ## API
|
---|
19 |
|
---|
20 | See [node-fetch](http://npm.im/node-fetch)
|
---|
21 |
|
---|
22 | Differences from `node-fetch` (and, by extension, from the WhatWG Fetch
|
---|
23 | specification):
|
---|
24 |
|
---|
25 | - Returns [minipass](http://npm.im/minipass) streams instead of node-core
|
---|
26 | streams.
|
---|
27 | - Supports the full set of [TLS Options that may be provided to
|
---|
28 | `https.request()`](https://nodejs.org/api/https.html#https_https_request_options_callback)
|
---|
29 | when making `https` requests.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.