public interface CefResourceHandler extends CefNative
限定符和类型 | 方法和说明 |
---|---|
void |
cancel()
Request processing has been canceled.
请求处理已被取消。 |
boolean |
canGetCookie(CefCookie cookie)
Return true if the specified cookie can be sent with the request or false otherwise.
如果指定的cookie可以随请求一起发送,则返回true,否则返回false。 |
boolean |
canSetCookie(CefCookie cookie)
Return true if the specified cookie returned with the response can be set or false otherwise.
如果可以设置随响应返回的指定cookie,则返回true,否则返回false。 |
void |
getResponseHeaders(CefResponse response, IntRef response_length, StringRef redirectUrl)
Retrieve response header information.
检索响应头信息。 |
boolean |
processRequest(CefRequest request, CefCallback callback)
Begin processing the request.
开始处理请求。 |
boolean |
readResponse(byte[] data_out, int bytes_to_read, IntRef bytes_read, CefCallback callback)
Read response data.
读取响应数据。 |
getNativeRef, setNativeRef
void cancel()
boolean canGetCookie(CefCookie cookie)
boolean canSetCookie(CefCookie cookie)
void getResponseHeaders(CefResponse response, IntRef response_length, StringRef redirectUrl)
boolean processRequest(CefRequest request, CefCallback callback)
boolean readResponse(byte[] data_out, int bytes_to_read, IntRef bytes_read, CefCallback callback)