Trait webview2_sys::ICoreWebView2WebResourceResponse[][src]

pub trait ICoreWebView2WebResourceResponse: IUnknown {
    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

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).

Sets the Content property.

Overridden HTTP response headers.

The HTTP response status code.

Sets the StatusCode property.

The HTTP response reason phrase.

Sets the ReasonPhrase property.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

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

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors