Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe filtered responses better #1513

Merged
merged 7 commits into from
Oct 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,8 @@ is a <a>filtered response</a> whose
console.log((await fetch("/surprise-me", { redirect: "manual" })).type); // "opaqueredirect"
})();
</code></pre>
<!-- "error" is exposed through Response.error().type, but seems like a design mistake as
network errors are otherwise always exposed through a TypeError exception. -->

<p>(This assumes that the various resources exist, <code>https://api.example/status</code> has the
appropriate CORS headers, and <code>/surprise-me</code> uses a <a>redirect status</a>.)
Expand Down