const res = await axios.get('https://httpbin.org/get', { params: { answer: 42 } }); res.headers['content-type']; // 'application/json' or 'text/html; charset=UTF-8'