Trait webview2_sys::ICoreWebView2WebResourceRequestedEventHandler [−][src]
pub trait ICoreWebView2WebResourceRequestedEventHandler: IUnknown {
unsafe fn invoke(
&self,
sender: *mut *mut ICoreWebView2VTable,
args: *mut *mut ICoreWebView2WebResourceRequestedEventArgsVTable
) -> HRESULT;
}
Expand description
Runs when a URL request (through network, file, and so on) is made in
the webview for a Web resource matching resource context filter and URL
specified in AddWebResourceRequestedFilter
. The host views and modifies
the request or provide a response in a similar pattern to HTTP, in which
case the request immediately completed. This may not contain any request
headers that are added by the network stack, such as an Authorization
header.
Required methods
unsafe fn invoke(
&self,
sender: *mut *mut ICoreWebView2VTable,
args: *mut *mut ICoreWebView2WebResourceRequestedEventArgsVTable
) -> HRESULT
unsafe fn invoke(
&self,
sender: *mut *mut ICoreWebView2VTable,
args: *mut *mut ICoreWebView2WebResourceRequestedEventArgsVTable
) -> HRESULT
Provides the event args for the corresponding event.
Trait Implementations
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface