fetchUtils Demo

GET/HTML

fetchUtils.getHTML(url, { method: 'GET' });

Response

GET/JSON with 30-second timeout

fetchUtils.getJSON(url, { method: 'GET' }, { timeout: 30000 });

Response

POST/JSON

fetchUtils.getJSON(url, { method: 'POST' });

Response