Trait webview2_sys::ICoreWebView2WebResourceResponseView[][src]

pub trait ICoreWebView2WebResourceResponseView: IUnknown {
    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; }

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

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

The HTTP response headers as received.

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

The HTTP response status code.

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

The HTTP response reason phrase.

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

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

Loading content...

Trait Implementations

impl ComInterface for dyn ICoreWebView2WebResourceResponseView[src]

type VTable = ICoreWebView2WebResourceResponseViewVTable

A COM compatible V-Table

type Super = dyn IUnknown

The interface that this interface inherits from

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

Implementations on Foreign Types

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

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

Loading content...

Implementors

Loading content...