4 property bool exceptionThrown: false
6 Component.onCompleted: {
7 var x = new XMLHttpRequest;
9 x.open("GET", "testdocument.html");
12 x.onreadystatechange = function() {
13 if (x.readyState == XMLHttpRequest.DONE) {
15 x.getAllResponseHeaders("Test-header");
17 if (e.code == DOMException.SYNTAX_ERR)
18 exceptionThrown = true;