Expose final URL on HttpClientResponse - #7496
Conversation
🦋 Changeset detectedLatest commit: dcbc92a The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
tim-smart
left a comment
There was a problem hiding this comment.
Currently the fetch adaptor will return url parameters in the url, and undici + node:http will drop them. I think we should make them consistent.
I think dropping them everywhere is ok.
Agreed that the adapters should be consistent. MDN defines Would you be open to preserving query parameters across all adapters by reconstructing the Node response URL from |
Type
Description
Expose the final response URL as
HttpClientResponse.url. Fetch and XMLHttpRequest clients preserve the URL reported by the underlying response after redirects, while the other adapters and wrappers expose the URL of the request that produced the response.Adds redirect coverage across Fetch, XMLHttpRequest, and Node clients, plus a changeset.
Related
None.