@aoeu/http-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @aoeu/http-client

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

13.6 kB

Total Files

8

Last publish

Collaborators

  • theantichris
  • thomas.jean
  • ryexley