HTTPoison fetched URL (after redirect)

I am wondering if HTTPoison can return the URL that was actually fetched. For example, if I am requesting http://something and the server does 301 redirect to https, I want to know the https URL. If I include :follow_redirect opt, I am getting a response, but the request_url returned to me still says http://something and not the https:// URL. The https URL is what actually contained the content.

Maybe it is better to do recursion myself until the status code is not 301? Or is there better way?

Many thanks you!

The underlying Hackney client makes the last redirect available but I don’t see a good way to get a reference to that client from outside HTTPoison.

Thank you!