http
http copied to clipboard
Add Response.url
Closes #321, closes #623, closes #692 Fixes #293
Add a Uri field to BaseResponse with the final, potentially redirected, url for the content.
The field is nullable for backwards compatibility - TODO: consider if this should be non-nullable from the start, or if it can be published nullable first and become non-nullable (and the constructor arg required) in the next breaking release.
This may break tests which use bocks but do not mock the field used to read the URL.
This is going to need more validation and potentially a rollout plan.
Thankyou !!
Hello, could you please update on the status of this PR? We faced the issue in our project that getting the final redirected URL is not possible from http.Response. It would be great to have this functionality. Thanks!
This is blocked on a breaking version change.
Any update on this?