internal WebView2HttpResponseHeaderCollection(ICoreWebView2HttpResponseHeaders httpHeaders) { _httpHeaders = httpHeaders; _headerNameValues = new Dictionary <string, string>(); ICoreWebView2HttpHeadersCollectionIterator iterator; _httpHeaders.GetIterator(out iterator); if (iterator != null) { int hasNext; iterator.MoveNext(out hasNext); while (hasNext != 0) { string name; string value; iterator.GetCurrentHeader(out name, out value); _headerNameValues.Add(name, value); iterator.MoveNext(out hasNext); } } }
internal EdgeWebBrowserResponseHeaders(ICoreWebView2HttpResponseHeaders headers) { _headers = headers; }