[−][src]Trait webview2_sys::ICoreWebView2WebResourceResponse
An HTTP response used with the WebResourceRequested event.
Required methods
unsafe fn get_content(&self, content: *mut *mut *mut IStreamVTable) -> HRESULT
HTTP response content as stream. Stream must have all the content data available by the time this response's WebResourceRequested event deferral is completed. Stream should be agile or be created from a background thread to prevent performance impact to the UI thread. Null means no content data. IStream semantics apply (return S_OK to Read calls until all data is exhausted)
unsafe fn put_content(&self, content: *mut *mut IStreamVTable) -> HRESULT
Set the Content property.
unsafe fn get_headers(
&self,
headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable
) -> HRESULT
&self,
headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable
) -> HRESULT
Overridden HTTP response headers.
unsafe fn get_status_code(&self, status_code: *mut i32) -> HRESULT
The HTTP response status code.
unsafe fn put_status_code(&self, status_code: i32) -> HRESULT
Set the StatusCode property.
unsafe fn get_reason_phrase(&self, reason_phrase: *mut LPWSTR) -> HRESULT
The HTTP response reason phrase
unsafe fn put_reason_phrase(&self, reason_phrase: LPCWSTR) -> HRESULT
Set the ReasonPhrase property.
Trait Implementations
impl ComInterface for dyn ICoreWebView2WebResourceResponse
[src]
type VTable = ICoreWebView2WebResourceResponseVTable
A COM compatible V-Table
type Super = dyn IUnknown
The interface that this interface inherits from
const IID: IID
[src]
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
[src]
impl<C: ICoreWebView2WebResourceResponse> ProductionComInterface<C> for dyn ICoreWebView2WebResourceResponse
[src]
Implementations on Foreign Types
impl<T: ICoreWebView2WebResourceResponse + ComInterface + ?Sized> ICoreWebView2WebResourceResponse for ComRc<T>
[src]
unsafe fn get_content(&self, content: *mut *mut *mut IStreamVTable) -> HRESULT
[src]
unsafe fn put_content(&self, content: *mut *mut IStreamVTable) -> HRESULT
[src]
unsafe fn get_headers(
&self,
headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable
) -> HRESULT
[src]
&self,
headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable
) -> HRESULT
unsafe fn get_status_code(&self, status_code: *mut i32) -> HRESULT
[src]
unsafe fn put_status_code(&self, status_code: i32) -> HRESULT
[src]
unsafe fn get_reason_phrase(&self, reason_phrase: *mut LPWSTR) -> HRESULT
[src]
unsafe fn put_reason_phrase(&self, reason_phrase: LPCWSTR) -> HRESULT
[src]
impl<T: ICoreWebView2WebResourceResponse + ComInterface + ?Sized> ICoreWebView2WebResourceResponse for ComPtr<T>
[src]
unsafe fn get_content(&self, content: *mut *mut *mut IStreamVTable) -> HRESULT
[src]
unsafe fn put_content(&self, content: *mut *mut IStreamVTable) -> HRESULT
[src]
unsafe fn get_headers(
&self,
headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable
) -> HRESULT
[src]
&self,
headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable
) -> HRESULT