Tracks redirect chains and throws when the maximum is exceeded.
Number of redirects followed so far.
Record a redirect. Throws TooManyRedirectsError if maxRedirects exceeded.
Reset the redirect counter.
Tracks redirect chains and throws when the maximum is exceeded.