252 references to ContentLength
CodeGenerator (19)
IIS.FunctionalTests (5)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (89)
Http2\Http2StreamTests.cs (59)
113Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
181new KeyValuePair<string, string>(HeaderNames.ContentLength, "11"),
504Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
613Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
644Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
675Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
706Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
828Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
862Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
873new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
899Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
923new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
940Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
951new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
983Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
994new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1026Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1038new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1079Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1090new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1123new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1144new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1179new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1214new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1250new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1304new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1321Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1359Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1398Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1432Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1502Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1701Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1779Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1850Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]);
1862new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1888Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1903new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1935Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
1974Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2022Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2046new KeyValuePair<string, string>(HeaderNames.ContentLength, "18"),
2085Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2106new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
2136Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2267Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
2300Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
3120Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
3814Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
4281Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
4474Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
4520Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
4560Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]);
4624Assert.Equal("54", _decodedHeaders[HeaderNames.ContentLength]);
4898Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
5020Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
5132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]);
5355Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]);
5426Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]);
Http3\Http3StreamTests.cs (27)
392Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
415Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
438Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
461Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
553new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
571Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
582new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
607Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
618new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
642Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]);
686new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
1266Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]);
1363Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]);
1623Assert.Equal("25", decodedHeaders[HeaderNames.ContentLength]);
1681Assert.Equal("25", decodedHeaders[HeaderNames.ContentLength]);
2340Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2398Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2503new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
2522Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2537new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
2563Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2595Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2635Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2659new KeyValuePair<string, string>(HeaderNames.ContentLength, "18"),
2690Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
2711new KeyValuePair<string, string>(HeaderNames.ContentLength, "12"),
2734Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]);
Microsoft.AspNetCore.Http (3)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Server.HttpSys (19)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
2086if (string.Equals(key, HeaderNames.ContentLength, StringComparison.Ordinal))
2243yield return HeaderNames.ContentLength;
2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength);
2760HttpSysRequestHeader.ContentLength => HeaderNames.ContentLength,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (16)
Microsoft.AspNetCore.Server.IIS (17)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
2086if (string.Equals(key, HeaderNames.ContentLength, StringComparison.Ordinal))
2243yield return HeaderNames.ContentLength;
2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength);
2760HttpSysRequestHeader.ContentLength => HeaderNames.ContentLength,
Microsoft.AspNetCore.Server.Kestrel.Core (29)
Internal\Http\HttpHeaders.Generated.cs (25)
307HeaderNames.ContentLength,
3331if (ReferenceEquals(HeaderNames.ContentLength, key))
3350if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
4115if (ReferenceEquals(HeaderNames.ContentLength, key))
4127if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
5122if (ReferenceEquals(HeaderNames.ContentLength, key))
5142if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
6229if (ReferenceEquals(HeaderNames.ContentLength, key))
6249if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
7469array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value));
7782? null : EncodingSelector(HeaderNames.ContentLength);
7991? null : EncodingSelector(HeaderNames.ContentLength);
8160? null : EncodingSelector(HeaderNames.ContentLength);
8649_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault()));
11382if (ReferenceEquals(HeaderNames.ContentLength, key))
11392if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
12047if (ReferenceEquals(HeaderNames.ContentLength, key))
12053if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
12828if (ReferenceEquals(HeaderNames.ContentLength, key))
12838if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
13720if (ReferenceEquals(HeaderNames.ContentLength, key))
13730if (HeaderNames.ContentLength.Equals(key, StringComparison.OrdinalIgnoreCase))
14796array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value));
15482_current = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_collection._contentLength.GetValueOrDefault()));
17564array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, HeaderUtilities.FormatNonNegativeInt64(_contentLength.Value));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Microsoft.AspNetCore.Shared.Tests (16)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1199if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
1436if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
1684if (string.Equals(key, HeaderNames.ContentLength, StringComparison.OrdinalIgnoreCase))
2086if (string.Equals(key, HeaderNames.ContentLength, StringComparison.Ordinal))
2243yield return HeaderNames.ContentLength;
2579yield return new KeyValuePair<string, StringValues>(HeaderNames.ContentLength, ContentLength);
2760HttpSysRequestHeader.ContentLength => HeaderNames.ContentLength,
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.TestHost (1)
ServerComparison.FunctionalTests (2)