6.0.0 • Published 5 years ago
@zeit/fetch v6.0.0
@zeit/fetch
Opinionated fetch
optimized for use inside microservices. Bundles:
- https://github.com/zeit/fetch-retry
- https://github.com/zeit/fetch-cached-dns
- https://github.com/node-modules/agentkeepalive
It automatically configures an agent
via agentkeepalive,
if not provided, with the following settings:
Name | Value |
---|---|
maxSockets | 200 |
maxFreeSockets | 20 |
timeout | 60000 |
freeSocketKeepAliveTimeout | 30000 |
How to use
const fetch = require('@zeit/fetch')(require('some-fetch-implementation'))
If no fetch implementation is supplied, it will attempt to use peerDep node-fetch
.
6.0.0
5 years ago
5.2.0
5 years ago
5.1.1
5 years ago
5.1.0
6 years ago
5.0.0
6 years ago
3.1.2
6 years ago
3.1.1
6 years ago
3.1.0
6 years ago
3.0.3
7 years ago
3.0.2
7 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.1.0
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago