chromium/third_party/blink/web_tests/http/tests/inspector-protocol/network/resources/event-stream.html

<!DOCTYPE html>
<script>
  async function runFetch() {
    const response = await fetch('event-stream.php');
    const body = await response.body;
    const reader = body.getReader();
    while (true) {
      const {done, value} = await reader.read();
      if (done) {
        break;
      }
    }
  }

  async function runXHR() {
    const xhr = new XMLHttpRequest();
    xhr.open('GET', 'event-stream.php');
    xhr.send();
  }

  navigator.serviceWorker.register('event-stream-worker.js');
</script>