httpi

0.3.0 • Public • Published

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();
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    3
    • latest

Version History

Package Sidebar

Install

npm i httpi

Weekly Downloads

3

Version

0.3.0

License

MIT

Last publish

Collaborators

  • dnii
  • ardean