interface IWebView2HttpHeadersCollectionIterator

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

interface IWebView2HttpHeadersCollectionIterator
  : public IUnknown

Iterator for a collection of HTTP headers.

Summary

Members Descriptions
GetCurrentHeader Get the name and value of the current HTTP header of the iterator.
MoveNext Move the iterator to the next HTTP header in the collection.

See IWebView2HttpRequestHeaders and IWebView2HttpResponseHeaders.

Members

GetCurrentHeader

Get the name and value of the current HTTP header of the iterator.

public HRESULT GetCurrentHeader(LPWSTR * name,LPWSTR * value)

This method will fail if the last call to MoveNext set has_next to FALSE.

MoveNext

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

public HRESULT MoveNext(BOOL * has_next)

The has_next parameter will be set to FALSE if there are no more HTTP headers. After this occurs the GetCurrentHeader method will fail if called.