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

0.2.1 • Public • Published

@uprtcl/http-provider

This node package includes basic _Prtcl provider wrappers around the native fetch api. These services include standard funcionality like a retry mechanism, or a ready() function to wait for them to be ready.

Documentation

Visit our documentation site.

Install

npm install @uprtcl/http-provider

Usage

Import the appropriate connection you would like to use, and make a new instance of it by passing its configuration:

import { HttpConnection } from '@uprtcl/http-provider';

const host = 'http://localhost:3100/1';
const httpConnection = new HttpConnection();

await httpConnection.ready();

Package Sidebar

Install

npm i @uprtcl/http-provider

Homepage

uprtcl.io

Weekly Downloads

4

Version

0.2.1

License

MIT

Unpacked Size

125 kB

Total Files

35

Last publish

Collaborators

  • guillem.cordoba
  • pepoospina
  • sotous