public void Test1() { var map = new CefStringMultiMap(); map.Append("Key 1", "String 1"); map.Append("Key 2", "String 2"); map.Append("Key 2", "String 2.1"); map.Append("Key 3", "String 3"); Assert.That(map.Count, Is.EqualTo(4)); // TODO: map.Clear(); Assert.That(map.Count, Is.EqualTo(0)); // TODO: map.Dispose(); }
protected override void GetResponseHeaders(CefResponse response, out long responseLength, ref string redirectUrl) { responseLength = this.responseLength; if (responseLength != -1) { var headers = new CefStringMultiMap(); headers.Append("Content-Length", responseLength.ToString()); response.SetHeaderMap(headers); } response.SetStatus(this.status); response.SetStatusText(this.statusText); response.SetMimeType(this.mimeType); }