ICoreWebView2WebResourceResponse

Trait ICoreWebView2WebResourceResponse 

Source
pub trait ICoreWebView2WebResourceResponse: IUnknown {
    // Required methods
    unsafe fn get_content(
        &self,
        content: *mut *mut *mut IStreamVTable,
    ) -> HRESULT;
    unsafe fn put_content(&self, content: *mut *mut IStreamVTable) -> HRESULT;
    unsafe fn get_headers(
        &self,
        headers: *mut *mut *mut ICoreWebView2HttpResponseHeadersVTable,
    ) -> HRESULT;
    unsafe fn get_status_code(&self, status_code: *mut i32) -> HRESULT;
    unsafe fn put_status_code(&self, status_code: i32) -> HRESULT;
    unsafe fn get_reason_phrase(&self, reason_phrase: *mut LPWSTR) -> HRESULT;
    unsafe fn put_reason_phrase(&self, reason_phrase: LPCWSTR) -> HRESULT;
}
Expand description

An HTTP response used with the WebResourceRequested event.

Required Methods§

Source

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 the WebResourceRequested event deferral of this response 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 runs until all data is exhausted).

Source

unsafe fn put_content(&self, content: *mut *mut IStreamVTable) -> HRESULT

Sets the Content property.

Source

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

Overridden HTTP response headers.

Source

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

The HTTP response status code.

Source

unsafe fn put_status_code(&self, status_code: i32) -> HRESULT

Sets the StatusCode property.

Source

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

The HTTP response reason phrase.

Source

unsafe fn put_reason_phrase(&self, reason_phrase: LPCWSTR) -> HRESULT

Sets the ReasonPhrase property.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2WebResourceResponse

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE

The associated id for this interface
Source§

type VTable = ICoreWebView2WebResourceResponseVTable

A COM compatible V-Table
Source§

type Super = dyn IUnknown

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

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

impl<C: ICoreWebView2WebResourceResponse> ProductionComInterface<C> for dyn ICoreWebView2WebResourceResponse

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2WebResourceResponse + ComInterface + ?Sized> ICoreWebView2WebResourceResponse for ComPtr<T>

Source§

unsafe fn get_content(&self, content: *mut *mut *mut IStreamVTable) -> HRESULT

Source§

unsafe fn put_content(&self, content: *mut *mut IStreamVTable) -> HRESULT

Source§

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

Source§

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

Source§

unsafe fn put_status_code(&self, status_code: i32) -> HRESULT

Source§

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

Source§

unsafe fn put_reason_phrase(&self, reason_phrase: LPCWSTR) -> HRESULT

Source§

impl<T: ICoreWebView2WebResourceResponse + ComInterface + ?Sized> ICoreWebView2WebResourceResponse for ComRc<T>

Source§

unsafe fn get_content(&self, content: *mut *mut *mut IStreamVTable) -> HRESULT

Source§

unsafe fn put_content(&self, content: *mut *mut IStreamVTable) -> HRESULT

Source§

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

Source§

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

Source§

unsafe fn put_status_code(&self, status_code: i32) -> HRESULT

Source§

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

Source§

unsafe fn put_reason_phrase(&self, reason_phrase: LPCWSTR) -> HRESULT

Implementors§