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

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i httpi

    Weekly Downloads

    1

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • dnii
    • ardean