whatwg / xhr

XMLHttpRequest Standard
https://xhr.spec.whatwg.org/
Other
314 stars 129 forks source link

Handle errors in response bodies #315

Closed annevk closed 3 years ago

annevk commented 3 years ago

And also clean up the way we manage XMLHttpRequest's response, which allows for simplifying "handle response end-of-body" and "handle errors".

Tests: https://github.com/web-platform-tests/wpt/pull/27778.

Fixes #314.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

annevk commented 3 years ago

(@domenic I think this ends up fixing something you mentioned in passing as well about the response parameter. The whole thing is still a bit clunky, but this makes it a lot better.)

annevk commented 3 years ago

@yutakahirano is this on your radar?

yutakahirano commented 3 years ago

Oh sorry, I'm looking...