IHeaderDictionary Interface¶
Represents HttpRequest and HttpResponse headers
- Namespace
Microsoft.AspNetCore.Http
- Assemblies
- Microsoft.AspNetCore.Http.Features
Syntax¶
public interface IHeaderDictionary : IDictionary<string, StringValues>, ICollection<KeyValuePair<string, StringValues>>, IEnumerable<KeyValuePair<string, StringValues>>, IEnumerable
-
interface
Microsoft.AspNetCore.Http.
IHeaderDictionary
Properties¶
-
Microsoft.AspNetCore.Http.IHeaderDictionary.
Item[System.String]
¶ IHeaderDictionary has a different indexer contract than IDictionary, where it will return StringValues.Empty for missing entries.
Return type: Microsoft.Extensions.Primitives.StringValues Returns: The stored value, or StringValues.Empty if the key is not present. StringValues this[string key] { get; set; }
-