fetch('/hello').then(function (response) {return response.text();}).then(function (text) {console.log('GET response text:');console.log(text);}); code example
Example: xml http request fetch
fetch('my/url/').then(respone()=>{
console.log(response);
}