Interface ReceiveHeadersCallback

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

The callback is invoked when the response headers have been received for a URL request.

The callback can be used to add, modify, or remove the HTTP headers received over the network.

Use the ReceiveHeadersCallback.Response.override(List) method to override the response headers.

Use the ReceiveHeadersCallback.Response.proceed() method if you do not need to modify the headers.

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