Trait ICoreWebView2WebResourceResponseView

Source
pub trait ICoreWebView2WebResourceResponseView: IUnknown {
    // Required methods
    unsafe fn get_headers(
        &self,
        headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable,
    ) -> HRESULT;
    unsafe fn get_status_code(&self, status_code: *mut i32) -> HRESULT;
    unsafe fn get_reason_phrase(&self, reason_phrase: *mut LPWSTR) -> HRESULT;
    unsafe fn get_content(
        &self,
        handler: *mut *mut ICoreWebView2WebResourceResponseViewGetContentCompletedHandlerVTable,
    ) -> HRESULT;
}
Expand description

View of the HTTP representation for a web resource response. The properties of this object are not mutable. This response view is used with the WebResourceResponseReceived event.

Required Methods§

Source

unsafe fn get_headers( &self, headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable, ) -> HRESULT

The HTTP response headers as received.

Source

unsafe fn get_status_code(&self, status_code: *mut i32) -> HRESULT

The HTTP response status code.

Source

unsafe fn get_reason_phrase(&self, reason_phrase: *mut LPWSTR) -> HRESULT

The HTTP response reason phrase.

Source

unsafe fn get_content( &self, handler: *mut *mut ICoreWebView2WebResourceResponseViewGetContentCompletedHandlerVTable, ) -> HRESULT

Get the response content asynchronously. The handler will receive the response content stream. If this method is being called again before a first call has completed, the handler will be invoked at the same time the handlers from prior calls are invoked. If this method is being called after a first call has completed, the handler will be invoked immediately. \snippet ScenarioWebViewEventMonitor.cpp GetContent

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2WebResourceResponseView

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_VIEW

The associated id for this interface
Source§

type VTable = ICoreWebView2WebResourceResponseViewVTable

A COM compatible V-Table
Source§

type Super = dyn IUnknown

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: ICoreWebView2WebResourceResponseView> ProductionComInterface<C> for dyn ICoreWebView2WebResourceResponseView

Source§

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

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§