@firstfleet/ffhttp
v1.1.2
Published
HTTP Wrapper Library
Downloads
28
Keywords
Readme
FFHTTP
This is our libary that wraps HTTP Calls
Installation
npm install @firstfleet/ffhttp --save
Usage
let loadRequest =
{
method: 'post',
url: 'http://myurl.com/poststuff',
headers: {
Authorization:
Bearer ${myToken}
},
data: {info: '12345'}
}
await ffHttp.callHttp(loadRequest);
await ffHttp.post('http://postURL.com', {myData: 1});