Implemented interface member:
property
this
Microsoft.AspNetCore.Http.IHeaderDictionary.this[System.String]
3 writes to
Microsoft.AspNetCore.Http (2)
HeaderDictionary.cs (2)
114
this
[
key] = value;
139
this
[
HeaderNames.ContentLength] = HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault());
Microsoft.AspNetCore.Http.Tests (1)
HeaderDictionaryTests.cs (1)
93
Assert.Throws<InvalidOperationException>(() => headers
[
"header1"] = "value1");
7 references to
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
124
var rawValue = this
[
HeaderNames.ContentLength];
Microsoft.AspNetCore.Http.Tests (6)
HeaderDictionaryTests.cs (5)
33
Assert.Equal("Value1", headers
[
"header1"]);
34
Assert.Equal(new[] { "Value1" }, headers
[
"header1"].ToArray());
83
Assert.Equal("Value1", headers
[
"header1"]);
84
Assert.Equal(new[] { "Value1" }, headers
[
"header1"].ToArray());
126
Assert.Same(Array.Empty<string>(), (string[])emptyHeaders
[
"Header1"]);
Internal\DefaultHttpRequestTests.cs (1)
115
Assert.Equal(expected, headers
[
"Host"][0]);