Trait ICoreWebView2WebResourceRequest

Source
pub trait ICoreWebView2WebResourceRequest: IUnknown {
    // Required methods
    unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT;
    unsafe fn put_uri(&self, uri: LPCWSTR) -> HRESULT;
    unsafe fn get_method(&self, method: *mut LPWSTR) -> HRESULT;
    unsafe fn put_method(&self, method: LPCWSTR) -> HRESULT;
    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 ICoreWebView2HttpRequestHeadersVTable,
    ) -> HRESULT;
}
Expand description

An HTTP request used with the WebResourceRequested event.

Required Methods§

Source

unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT

The request URI.

Source

unsafe fn put_uri(&self, uri: LPCWSTR) -> HRESULT

Sets the Uri property.

Source

unsafe fn get_method(&self, method: *mut LPWSTR) -> HRESULT

The HTTP request method.

Source

unsafe fn put_method(&self, method: LPCWSTR) -> HRESULT

Sets the Method property.

Source

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

The HTTP request message body as stream. POST data should be here. If a stream is set, which overrides the message body, the 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 STA 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 ICoreWebView2HttpRequestHeadersVTable, ) -> HRESULT

The mutable HTTP request headers

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2WebResourceRequest

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_WEB_RESOURCE_REQUEST

The associated id for this interface
Source§

type VTable = ICoreWebView2WebResourceRequestVTable

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: ICoreWebView2WebResourceRequest> ProductionComInterface<C> for dyn ICoreWebView2WebResourceRequest

Source§

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

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

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

Source§

unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_uri(&self, uri: LPCWSTR) -> HRESULT

Source§

unsafe fn get_method(&self, method: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_method(&self, method: LPCWSTR) -> HRESULT

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 ICoreWebView2HttpRequestHeadersVTable, ) -> HRESULT

Source§

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

Source§

unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_uri(&self, uri: LPCWSTR) -> HRESULT

Source§

unsafe fn get_method(&self, method: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_method(&self, method: LPCWSTR) -> HRESULT

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 ICoreWebView2HttpRequestHeadersVTable, ) -> HRESULT

Implementors§