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; }
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

The HTTP response headers as received.

The HTTP response status code.

The HTTP response reason phrase.

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

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

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

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors