title: Returning HTML With fetch()
body: <p>I'm trying to fetch a file and return it's HTML. However it's not as simple as I'd have imagined.</p>
  
  <pre><code>    fetch('/path/to/file')
      .then(function (response) {
        return response.body;
      })
      .then(function (body) {
        console.log(body);
      });
  </code></pre>
  
  <p>This returns an object called <code>ReadableByteStream</code>. How do I use this to grab the HTML file content?</p>
  
  <p>If I change the contents of <code>/path/to/file</code> to be a JSON string, and change the above to:</p>
  
  <pre><code>    fetch('/path/to/file')
      .then(function (response) {
        return response.json();
      })
      .then(function (json) {
        console.log(json);
      });
  </code></pre>
  
  <p>... it returns the JSON correctly. How do I do fetch HTML?</p>