ICoreWebView2HttpHeadersCollectionIterator

Trait ICoreWebView2HttpHeadersCollectionIterator 

Source
pub trait ICoreWebView2HttpHeadersCollectionIterator: IUnknown {
    // Required methods
    unsafe fn get_current_header(
        &self,
        name: *mut LPWSTR,
        value: *mut LPWSTR,
    ) -> HRESULT;
    unsafe fn get_has_current_header(&self, has_current: *mut BOOL) -> HRESULT;
    unsafe fn move_next(&self, has_next: *mut BOOL) -> HRESULT;
}
Expand description

Iterator for a collection of HTTP headers. For more information, navigate to ICoreWebView2HttpRequestHeaders and ICoreWebView2HttpResponseHeaders.

\snippet ScenarioWebViewEventMonitor.cpp HttpRequestHeaderIterator

Required Methods§

Source

unsafe fn get_current_header( &self, name: *mut LPWSTR, value: *mut LPWSTR, ) -> HRESULT

Get the name and value of the current HTTP header of the iterator. If the previous MoveNext operation set the hasNext parameter to FALSE, this method fails.

Source

unsafe fn get_has_current_header(&self, has_current: *mut BOOL) -> HRESULT

TRUE when the iterator has not run out of headers. If the collection over which the iterator is iterating is empty or if the iterator has gone past the end of the collection then this is FALSE.

Source

unsafe fn move_next(&self, has_next: *mut BOOL) -> HRESULT

Move the iterator to the next HTTP header in the collection.

> [!NOTE]\n > If no more HTTP headers exist, the hasNext parameter is set to FALSE. After this occurs the GetCurrentHeader method fails.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2HttpHeadersCollectionIterator

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_HTTP_HEADERS_COLLECTION_ITERATOR

The associated id for this interface
Source§

type VTable = ICoreWebView2HttpHeadersCollectionIteratorVTable

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

Source§

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

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

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

Source§

unsafe fn get_current_header( &self, name: *mut LPWSTR, value: *mut LPWSTR, ) -> HRESULT

Source§

unsafe fn get_has_current_header(&self, has_current: *mut BOOL) -> HRESULT

Source§

unsafe fn move_next(&self, has_next: *mut BOOL) -> HRESULT

Source§

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

Source§

unsafe fn get_current_header( &self, name: *mut LPWSTR, value: *mut LPWSTR, ) -> HRESULT

Source§

unsafe fn get_has_current_header(&self, has_current: *mut BOOL) -> HRESULT

Source§

unsafe fn move_next(&self, has_next: *mut BOOL) -> HRESULT

Implementors§