Skip to content
forked from vercel/fetch

Opinionated `fetch` (with retrying and DNS caching) optimized for use inside microservices

License

Notifications You must be signed in to change notification settings

AuroraSparkDev/fetch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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:

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.

About

Opinionated `fetch` (with retrying and DNS caching) optimized for use inside microservices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%