func ErrIsTooManyRedirects(err error) bool {
	if ex.Is(err, http.ErrUseLastResponse) {
		return true
	}
	if typed, ok := err.(*url.Error); ok {
		return ex.Is(typed.Err, http.ErrUseLastResponse)
	}
	return false
}
// ErrIsTooManyRedirects returns if the error is too many redirects.
ErrIsTooManyRedirects returns if the error is too many redirects.
// ErrIsTooManyRedirects returns if the error is too many redirects .
func ErrIsTooManyRedirects(err error) bool {
	if ex.Is(err, http.ErrUseLastResponse) {
		return true
	}
	if typed, ok := err.(*url.Error); ok {
		return ex.Is(typed.Err, http.ErrUseLastResponse)
	}
	return false
}
func ErrIsTooManyRedirects ( err error ) bool { if ex . Is ( err , http . ErrUseLastResponse ) { return true } if typed , ok := err . ( * url . Error ) ; ok { return ex . Is ( typed . Err , http . ErrUseLastResponse ) } return false }
ErrIsTooManyRedirects returns if the error is too many redirects.
ErrIsTooManyRedirects returns if the error is too many redirects .