Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios get request

const axios = require('axios');

async function makeRequest() {

    const config = {
        method: 'get',
        url: 'http://webcode.me'
    }

    let res = await axios(config)

    console.log(res.status);
}

makeRequest();
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #axios #request
ADD COMMENT
Topic
Name
7+1 =