fn redirect_policy(
redirect_history: RedirectHistory,
max_redirects: usize,
) -> PolicyExpand description
Create our custom redirect::Policy in order to stop following redirects
once max_redirects is reached and to record redirections for reporting.