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