public interface**RedirectHandler**  
An interface for classes specifying how Cronet should behave on redirects.  

### Public Method Summary

|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract boolean | [shouldFollowRedirect](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/apihelpers/RedirectHandler.html#shouldFollowRedirect(org.chromium.net.UrlResponseInfo,%20java.lang.String))([UrlResponseInfo](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlResponseInfo.html)info, String newLocationUrl) Returns whether the redirect should be followed. |

## Public Methods

#### public abstract boolean**shouldFollowRedirect**([UrlResponseInfo](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlResponseInfo.html)info, String newLocationUrl)

Returns whether the redirect should be followed.  

##### Parameters

|      info      | the response info of the redirect response |
| newLocationUrl |           the redirect location            |
|----------------|--------------------------------------------|

##### Returns

- whether Cronet should follow the redirect or not  

##### Throws

| Exception |   |
|-----------|---|