electron/spec/fixtures/pages/fetch.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
355 B
HTML
Raw Normal View History

<html>
<body>
<script>
window.ajax = async (url, options) => {
const response = await fetch(url, options);
const data = await response.text();
const headers = {};
for (const [key, value] of response.headers.entries()) {
headers[key] = value;
}
return {data, status: response.status, headers};
}
</script>
</body>
</html>