0.4.0 • Published 4 years ago

@gourmet/ufetch v0.4.0

Weekly downloads
7
License
-
Repository
-
Last release
4 years ago

@gourmet/ufetch

A tiny, zero-dependency fetch-like library for implementing higher level Rest API clients.

Based on node-fetch: https://github.com/bitinn/node-fetch

Key differences from node-fetch are:

  • Much simpler API without the spec-compliance.
  • Use KeepAlive agents for both http and https by default.
  • Pass-through all unknown options to the underlying http.request().
  • No sub-objects such asBody, Request, Response and Headers.
  • No binary body support such as Blob and ArrayBuffer.
  • No stream support.
  • No multipart/form-data / FormData support (but you can use application/x-www-form-urlencoded).
  • No compression encoding.
  • No abort signal.
  • No auto-setting of Content-Type based on body type.
  • Only UTF-8 encoding is supported for the string body.
  • No body size limit.
  • No res.clone().
  • Only get & has in res.headers.