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
unsafe 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.
unsafe 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.
unsafe 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.
unsafe 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
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface