0.4.18 • Published 1 year ago

@cordxapp/request v0.4.18

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

@cordxapp/request

Custom logic for handling requests how you want to!


Documentation


Get Method

Commonjs

const { RequestClient } = require('@cordxapp/request');
const { get } = new RequestClient();

const response = await get('https://api.cordx.lol');

return console.log(response.message);

ES6

import { RequestClient } from '@cordxapp/request';
const req = new RequestClient();

const response = await req.get('https://api.cordx.lol');

return console.log(response.message);

Post Method

Commonjs

const { RequestClient } = require('@cordxapp/request');
const req = new RequestClient();

return req.post({ url: 'https://api.cordx.lol', body: 'SOME_BODY_HERE' });

ES6

import { RequestClient } from '@cordxapp/request';
const req = new RequestClient();

return req.post({ url: 'https://api.cordx.lol', body: 'SOME_BODY_HERE' });
0.4.18

1 year ago

0.4.16

1 year ago

0.4.14

1 year ago

0.2.0

2 years ago

0.1.1

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago