List<RedirectInfo> redirects

Returns the series of redirects this connection has been through. The list will be empty if no redirects were followed. redirects will be updated both in the case of an automatic and a manual redirect.

Source

List<RedirectInfo> get redirects;