6.0.0 • Published 4 years ago

@zeit/fetch v6.0.0

Weekly downloads
16,869
License
MIT
Repository
github
Last release
4 years ago

@zeit/fetch

Build Status

Opinionated fetch optimized for use inside microservices. Bundles:

It automatically configures an agent via agentkeepalive, if not provided, with the following settings:

NameValue
maxSockets200
maxFreeSockets20
timeout60000
freeSocketKeepAliveTimeout30000

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.