-
-
Notifications
You must be signed in to change notification settings - Fork 729
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
This would solve...
This would allow jsdom to simplify some of its high-level request handling, so that most of the codebase can use request() instead of dispatch().
In particular, this code could be simplified, removing all the work of translating between AbortSignals and undici controllers.
The implementation should look like...
Extend ResponseData with statusText instead of dropping the status text on the floor.
I have also considered...
I admit this is a niche feature, and that people should generally not care about status text. But, jsdom needs to pass the relevant web platform tests, and would really appreciate it.
Additional context
I'll try to send a PR for this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request