owing code gets the contents of a JSON file
and prints its length:</p>
<pre><code class="prettyprint lang-dart">var path = 'myData.json';
HttpRequest.getString(path)
    .then((String fileContents) {
      print(fileContents.length);
    })
    .catchError((Error error) {
      print(error.toString());
    });
</code></pre>
<h2>Fetching data from other servers</h2>
<p>For security reasons, browsers impose restrictions on requests
made by embedded apps.
With the default behavior of this class,
the code makin