The OpenD Programming Language

cef_urlrequest_client_t

Structure that should be implemented by the cef_urlrequest_t client. The functions of this structure will be called on the same thread that created the request unless otherwise documented.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_auth_credentials
int function(cef_urlrequest_client_t* self, int isProxy, const(cef_string_t)* host, int port, const(cef_string_t)* realm, const(cef_string_t)* scheme, cef_auth_callback_t* callback) nothrow get_auth_credentials;

Called on the IO thread when the browser needs credentials from the user. |isProxy| indicates whether the host is a proxy server. |host| contains the hostname and |port| contains the port number. Return true (1) to continue the request and call cef_auth_callback_t::cont() when the authentication information is available. If the request has an associated browser/frame then returning false (0) will result in a call to GetAuthCredentials on the cef_request_handler_t associated with that browser, if any. Otherwise, returning false (0) will cancel the request immediately. This function will only be called for requests initiated from the browser process.

on_download_data
void function(cef_urlrequest_client_t* self, cef_urlrequest_t* request, const(void)* data, size_t data_length) nothrow on_download_data;

Called when some part of the response is read. |data| contains the current bytes received since the last call. This function will not be called if the UR_FLAG_NO_DOWNLOAD_DATA flag is set on the request.

on_download_progress
void function(cef_urlrequest_client_t* self, cef_urlrequest_t* request, long current, long total) nothrow on_download_progress;

Notifies the client of download progress. |current| denotes the number of bytes received up to the call and |total| is the expected total size of the response (or -1 if not determined).

on_request_complete
void function(cef_urlrequest_client_t* self, cef_urlrequest_t* request) nothrow on_request_complete;

Notifies the client that the request has completed. Use the

on_upload_progress
void function(cef_urlrequest_client_t* self, cef_urlrequest_t* request, long current, long total) nothrow on_upload_progress;

Notifies the client of upload progress. |current| denotes the number of bytes sent so far and |total| is the total size of uploading data (or -1 if chunked upload is enabled). This function will only be called if the UR_FLAG_REPORT_UPLOAD_PROGRESS flag is set on the request.

Meta