RedirectHandler

public interface RedirectHandler


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

Summary

Public methods

abstract boolean

Returns whether the redirect should be followed.

Public methods

shouldFollowRedirect

abstract boolean shouldFollowRedirect(UrlResponseInfo info, String newLocationUrl)

Returns whether the redirect should be followed.

Parameters
UrlResponseInfo info

the response info of the redirect response

String newLocationUrl

the redirect location

Returns
boolean

whether Cronet should follow the redirect or not