next-httpclient
v1.1.0
Published
HTTP Service for Next Js based applications or can be used as normal HTTP get and post calls.
Downloads
5
Readme
Next HTTP Service
const httpService = require('next-httpclient');
const res = await httpService.get('https://someurl/');
// Content-Type is set to application-json by default
const res = await httpService.post('https://someurl/', {
options
});