Trait webview2_sys::ICoreWebView2HttpHeadersCollectionIterator [−][src]
pub trait ICoreWebView2HttpHeadersCollectionIterator: IUnknown {
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
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.
unsafe fn get_has_current_header(&self, has_current: *mut BOOL) -> HRESULT
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
.
Trait Implementations
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface