Interface BeforeUrlRequestCallback

All Superinterfaces:
Callback, NetworkCallback, NetworkSyncCallback<BeforeUrlRequestCallback.Params,BeforeUrlRequestCallback.Response>, SyncCallback<BeforeUrlRequestCallback.Params,BeforeUrlRequestCallback.Response>

The callback is invoked when an HTTP request is about to occur.

The callback can be used to redirect the request to another location.

Use the BeforeUrlRequestCallback.Response.redirect(String) method to redirect the request to another location.

Use the BeforeUrlRequestCallback.Response.proceed() method if you do not need to redirect the location.

If the callback throws an exception, the BeforeUrlRequestCallback.Response.proceed() method will be invoked.