public interface BeforeSendHeadersCallback extends NetworkSyncCallback<BeforeSendHeadersCallback.Params,BeforeSendHeadersCallback.Response>
The callback can be used to add, modify, and delete the HTTP request headers before they will be sent to a web server.
Use the BeforeSendHeadersCallback.Response.override(List)
method to modify the HTTP request headers.
Use the BeforeSendHeadersCallback.Response.proceed()
method if you do not need to modify the headers.
If the callback throws an exception, the BeforeSendHeadersCallback.Response.proceed()
method will be invoked.
Modifier and Type | Interface and Description |
---|---|
static interface |
BeforeSendHeadersCallback.Params
The parameters of the
BeforeSendHeadersCallback . |
static interface |
BeforeSendHeadersCallback.Response
A response for
BeforeSendHeadersCallback . |
on