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§
Sourceunsafe fn get_headers(
&self,
headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable,
) -> HRESULT
unsafe fn get_headers( &self, headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable, ) -> HRESULT
The HTTP response headers as received.
Sourceunsafe fn get_status_code(&self, status_code: *mut i32) -> HRESULT
unsafe fn get_status_code(&self, status_code: *mut i32) -> HRESULT
The HTTP response status code.
Sourceunsafe fn get_reason_phrase(&self, reason_phrase: *mut LPWSTR) -> HRESULT
unsafe fn get_reason_phrase(&self, reason_phrase: *mut LPWSTR) -> HRESULT
The HTTP response reason phrase.
Sourceunsafe fn get_content(
&self,
handler: *mut *mut ICoreWebView2WebResourceResponseViewGetContentCompletedHandlerVTable,
) -> HRESULT
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
impl ComInterface for dyn ICoreWebView2WebResourceResponseView
Source§const IID: IID = IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_VIEW
const IID: IID = IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_VIEW
The associated id for this interface
Source§type VTable = ICoreWebView2WebResourceResponseViewVTable
type VTable = ICoreWebView2WebResourceResponseViewVTable
A COM compatible V-Table
Source§fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
Check whether a given IID is in the inheritance hierarchy of this interface