httpi
v0.3.0
Published
A HTTP client
Downloads
4
Readme
httpi
Example:
const http = new HttpClient({
baseUrl: "http://localhost",
headers: {
"Authorization": "Bearer 1234"
}
});
http.interceptors.push({
response: (res) => {
return res;
},
responseError: (res) => {
return res;
}
});
http.post("/hello").then(() => {
done();
});