zinohttp
v1.2.0
Published
A tiny no-dependency incredibly fast http library
Downloads
4
Readme
ZinoHTTP
A tiny no-dependency incredibly fast http library, made with micro-services in mind.
Installing
Using npm:
$ npm install zinohttp
Using yarn:
$ yarn add zinohttp
Example
NOTE: TypeScript usage recommended, comes with types pre-compiled.
import zino from 'zinohttp';
or
const zino = require('zinohttp').default;
Performing a GET
request
import zino from 'zinohttp';
zino.get("https://httpbin.org/get").then(response => {
console.log(response.data);
});
Performing a POST
request
import zino from 'zinohttp';
zino.post("https://httpbin.org/post", { order: 66 }).then(response => {
console.log(response.data);
});