ICoreWebView2Environment2

Trait ICoreWebView2Environment2 

Source
pub trait ICoreWebView2Environment2: ICoreWebView2Environment {
    // Required method
    unsafe fn create_web_resource_request(
        &self,
        uri: LPCWSTR,
        method: LPCWSTR,
        post_data: *mut *mut IStreamVTable,
        headers: LPCWSTR,
        request: *mut *mut *mut ICoreWebView2WebResourceRequestVTable,
    ) -> HRESULT;
}
Expand description

A continuation of the ICoreWebView2Environment interface.

Required Methods§

Source

unsafe fn create_web_resource_request( &self, uri: LPCWSTR, method: LPCWSTR, post_data: *mut *mut IStreamVTable, headers: LPCWSTR, request: *mut *mut *mut ICoreWebView2WebResourceRequestVTable, ) -> HRESULT

Create a new web resource request object. URI parameter must be absolute URI. The headers string is the raw request header string delimited by CRLF (optional in last header). It’s also possible to create this object with null headers string and then use the ICoreWebView2HttpRequestHeaders to construct the headers line by line. For information on other parameters see ICoreWebView2WebResourceRequest.

\snippet ScenarioNavigateWithWebResourceRequest.cpp NavigateWithWebResourceRequest

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2Environment2

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_ENVIRONMENT2

The associated id for this interface
Source§

type VTable = ICoreWebView2Environment2VTable

A COM compatible V-Table
Source§

type Super = dyn ICoreWebView2Environment

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2Environment2> ProductionComInterface<C> for dyn ICoreWebView2Environment2

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2Environment2 + ComInterface + ?Sized> ICoreWebView2Environment2 for ComPtr<T>

Source§

impl<T: ICoreWebView2Environment2 + ComInterface + ?Sized> ICoreWebView2Environment2 for ComRc<T>

Implementors§