@aoeu/http-client
This is a base http client library that uses isomorphic-fetch to normalize the use of the Fetch API across browsers, and a node.js environment. This library provides a foundation library for making fetch
calls to http resources that supports most standard http verbs (GET
, POST
, PATCH
and DELETE
currently), and provides a consistent, predictable response structure that consists of two main properties:
{
status,
data
}
status
This represents the http status code of the response made to the resource.
data
This is the body returned from the result of the request made to the resource, which can often be empty.