public interface

RedirectHandler

org.chromium.net.apihelpers.RedirectHandler

Class Overview

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

Summary

Public Methods
abstract boolean shouldFollowRedirect(UrlResponseInfo info, String newLocationUrl)
Returns whether the redirect should be followed.

Public Methods

public abstract boolean shouldFollowRedirect (UrlResponseInfo info, String newLocationUrl)

Returns whether the redirect should be followed.

Parameters
info UrlResponseInfo: the response info of the redirect response
newLocationUrl String: the redirect location
Returns
boolean whether Cronet should follow teh redirect or not
Throws
Exception