public UrlRequest(FREObject freObject, bool usingEdge) { RequestHeaders = new List <KeyValuePair <string, string> >(); if (freObject.Type() == FreObjectTypeSharp.Null) { return; } Url = freObject.GetProp("url").AsString(); var requestHeadersFre = new FREArray(freObject.GetProp("requestHeaders")); foreach (var requestHeader in requestHeadersFre) { var rh = new UrlRequestHeader(requestHeader); if (usingEdge && !_acceptedHeaders.Contains(rh.Name.ToLower())) { continue; } RequestHeaders.Add(new KeyValuePair <string, string>(rh.Name, rh.Value)); } }