// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.Extensions.Primitives;
namespace Microsoft.AspNet.Http
{
///
/// Accessors for headers, query, forms, etc.
///
public interface IReadableStringCollection : IEnumerable>
{
///
/// Get the associated value from the collection.
/// Returns StringValues.Empty if the key is not present.
///
///
///
StringValues this[string key] { get; }
///
/// Gets the number of elements contained in the collection.
///
int Count { get; }
///
/// Gets a collection containing the keys.
///
ICollection Keys { get; }
///
/// Determines whether the collection contains an element with the specified key.
///
///
///
bool ContainsKey(string key);
}
}