[][src]Trait webview2_sys::ICoreWebView2WebResourceRequestedEventHandler

pub trait ICoreWebView2WebResourceRequestedEventHandler: IUnknown {
    unsafe fn invoke(
        &self,
        sender: *mut *mut ICoreWebView2VTable,
        args: *mut *mut ICoreWebView2WebResourceRequestedEventArgsVTable
    ) -> HRESULT; }

Fires when a URL request (through network, file etc.) is made in the webview for a Web resource matching resource context filter and URL specified in AddWebResourceRequestedFilter. The host can view and modify 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 Authorization headers.

Required methods

unsafe fn invoke(
    &self,
    sender: *mut *mut ICoreWebView2VTable,
    args: *mut *mut ICoreWebView2WebResourceRequestedEventArgsVTable
) -> HRESULT

Called to provide the implementer with the event args for the corresponding event.

Loading content...

Trait Implementations

impl ComInterface for dyn ICoreWebView2WebResourceRequestedEventHandler[src]

type VTable = ICoreWebView2WebResourceRequestedEventHandlerVTable

A COM compatible V-Table

type Super = dyn IUnknown

The interface that this interface inherits from

impl<C: ICoreWebView2WebResourceRequestedEventHandler> ProductionComInterface<C> for dyn ICoreWebView2WebResourceRequestedEventHandler[src]

Implementations on Foreign Types

impl<T: ICoreWebView2WebResourceRequestedEventHandler + ComInterface + ?Sized> ICoreWebView2WebResourceRequestedEventHandler for ComRc<T>[src]

impl<T: ICoreWebView2WebResourceRequestedEventHandler + ComInterface + ?Sized> ICoreWebView2WebResourceRequestedEventHandler for ComPtr<T>[src]

Loading content...

Implementors

Loading content...