pub trait ICoreWebView2HttpResponseHeaders: IUnknown {
// Required methods
unsafe fn append_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT;
unsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT;
unsafe fn get_header(&self, name: LPCWSTR, value: *mut LPWSTR) -> HRESULT;
unsafe fn get_headers(
&self,
name: LPCWSTR,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT;
unsafe fn get_iterator(
&self,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT;
}Expand description
HTTP response headers. Used to construct a WebResourceResponse for the
WebResourceRequested event.
Required Methods§
Sourceunsafe fn append_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT
unsafe fn append_header(&self, name: LPCWSTR, value: LPCWSTR) -> HRESULT
Appends header line with name and value.
Sourceunsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT
unsafe fn contains(&self, name: LPCWSTR, contains: *mut BOOL) -> HRESULT
Verifies that the headers contain entries that match the header name.
Sourceunsafe fn get_header(&self, name: LPCWSTR, value: *mut LPWSTR) -> HRESULT
unsafe fn get_header(&self, name: LPCWSTR, value: *mut LPWSTR) -> HRESULT
Gets the first header value in the collection matching the name.
Sourceunsafe fn get_headers(
&self,
name: LPCWSTR,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT
unsafe fn get_headers( &self, name: LPCWSTR, iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable, ) -> HRESULT
Gets the header values matching the name.
Sourceunsafe fn get_iterator(
&self,
iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable,
) -> HRESULT
unsafe fn get_iterator( &self, iterator: *mut *mut *mut ICoreWebView2HttpHeadersCollectionIteratorVTable, ) -> HRESULT
Gets an iterator over the collection of entire response headers.
Trait Implementations§
Source§impl ComInterface for dyn ICoreWebView2HttpResponseHeaders
impl ComInterface for dyn ICoreWebView2HttpResponseHeaders
Source§const IID: IID = IID_ICORE_WEB_VIEW2_HTTP_RESPONSE_HEADERS
const IID: IID = IID_ICORE_WEB_VIEW2_HTTP_RESPONSE_HEADERS
The associated id for this interface
Source§type VTable = ICoreWebView2HttpResponseHeadersVTable
type VTable = ICoreWebView2HttpResponseHeadersVTable
A COM compatible V-Table
Source§fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
Check whether a given IID is in the inheritance hierarchy of this interface