Skip to content

Lightweight Fetch implementation transparently supporting both HTTP/1(.1) and HTTP/2.

License

Notifications You must be signed in to change notification settings

stefan-guggisberg/poly-fetch

Repository files navigation

poly-fetch

Lightweight Fetch implementation transparently supporting both HTTP/1(.1) and HTTP/2.

Features

  • supports reasonable subset of the standard Fetch specification
  • Transparent handling of HTTP/1(.1) and HTTP/2 connections
  • Support gzip/deflate/br content encoding
  • HTTP/2 request and response multiplexing support
  • HTTP/2 Server Push support
  • overridable User-Agent
  • low-level HTTP/1.* agent/connect options support (e.g. keepAlive, rejectUnauthorized)

Development

For troubleshooting and debugging, you can enable low-level debug console output from Node.js (NODE_DEBUG=<module list>) and/or from poly-fetch (DEBUG=poly-fetch*), for example:

NODE_DEBUG=http*,tls DEBUG=poly-fetch* node myTest.js

Acknowledgement

Thanks to node-fetch and whatwg-fetch for providing a solid implementation reference.

About

Lightweight Fetch implementation transparently supporting both HTTP/1(.1) and HTTP/2.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published