using System.Net;
using System.Collections;
using System.Collections.Generic;
namespace EmbedIO
{
///
/// Interface for Cookie Collection.
///
///
#pragma warning disable CA1010 // Should implement ICollection - not possible when wrapping System.Net.CookieCollection.
public interface ICookieCollection : IEnumerable, ICollection
#pragma warning restore CA1010
{
///
/// Gets the with the specified name.
///
///
/// The .
///
/// The name.
/// The cookie matching the specified name.
Cookie? this[string name] { get; }
///
/// Determines whether this contains the specified .
///
/// The cookie to find in the .
///
/// if this contains the specified ;
/// otherwise, .
///
bool Contains(Cookie cookie);
///
/// Copies the elements of this to a array
/// starting at the specified index of the target array.
///
/// The target array to which the will be copied.
/// The zero-based index in the target where copying begins.
void CopyTo(Cookie[] array, int index);
///
/// Adds the specified cookie.
///
/// The cookie.
void Add(Cookie cookie);
}
}