Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
axios 0.18
node v10.24.1
version:
1.0.0
endpoint
share
tweet
const axios_old = require("axios@0.18.0"); const axios_new = require("axios@0.19.0"); const ctr_args = { baseURL: "https://httpbin.org", params: { q: "question", } }; const ax_old = axios_old.create(ctr_args); const ax_new = axios_new.create(ctr_args);
const req_args = { params: { page: 2 } }; ax_old.get("/anything", req_args).then(function(r) { console.log("axios 0.18", r.data); }); ax_new.get("/anything", req_args).then(function(r) { console.log("axios 0.19", r.data); });
Loading…
no comments
sign in
to comment