node simple request.
npm install --save @cray/ajiax
const ajiax = require('@cray/ajiax');
ajiax.get();
ajiax.post();
return Promise
.
- uri : get requset url.
- resolveWithFullResponse : only return success or error data if
resolveWithFullResponse = false
. defaultfalse
. - headers : request header.
- query : url query data , type : Object.
- timeout: number | 15000.
- uri : post requset url.
- resolveWithFullResponse : only return success or error data if
resolveWithFullResponse = false
. defaultfalse
. - headers : request header.
- query : url query data , type : Object.
- body : post's data , type : Object.
- timeout: number | 15000