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

Obtain Response URL #790

Open
0xifarouk opened this issue Dec 6, 2024 · 1 comment
Open

Obtain Response URL #790

0xifarouk opened this issue Dec 6, 2024 · 1 comment
Labels
kind/enhancement Improvements to existing feature.

Comments

@0xifarouk
Copy link

how can I get the response url?
in URLSession we can say:

let (data, response) = try await URLSession.shared.data(for: request)
print(response.url)

how to do that using AsyncHttpClient?

@Lukasa
Copy link
Collaborator

Lukasa commented Dec 9, 2024

Unfortunately, this information is not exposed today. We'd need some new API surface on the response to expose it, which in my view should also expose the rest of the redirect history.

@Lukasa Lukasa added the kind/enhancement Improvements to existing feature. label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements to existing feature.
Projects
None yet
Development

No branches or pull requests

2 participants