// 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.AspNetCore.Http
{
///
/// Represents HttpRequest and HttpResponse headers
///
public interface IHeaderDictionary : IDictionary
{
///
/// IHeaderDictionary has a different indexer contract than IDictionary, where it will return StringValues.Empty for missing entries.
///
///
/// The stored value, or StringValues.Empty if the key is not present.
new StringValues this[string key] { get; set; }
///
/// Strongly typed access to the Content-Length header. Implementations must keep this in sync with the string representation.
///
long? ContentLength { get; set; }
}
}