The OpenD Programming Language

cef_download_handler_t.can_download

Called before a download begins in response to a user-initiated action (e.g. alt + link click or link click that returns a `Content-Disposition: attachment` response from the server). |url| is the target download URL and |request_function| is the target function (GET, POST, etc) nothrow. Return true (1) to proceed with the download or false (0) to cancel the download.

struct cef_download_handler_t
extern (System)
int function(cef_download_handler_t* self, cef_browser_t* browser, const(cef_string_t)* url, const(cef_string_t)* request_method) nothrow can_download;

Meta