Implemented interface members:
1283 references to Count
Aspire.Dashboard (2)
Authentication\OtlpApiKey\OtlpApiKeyAuthenticationHandler.cs (1)
29if (apiKey.Count != 1)
DashboardWebApplication.cs (1)
396if (context.Context.Response.Headers.CacheControl.Count == 0)
CookiePolicySample (1)
Startup.cs (1)
113await response.WriteAsync($"{responseCookies.Count} Response Cookies:<br>\r\n");
InMemory.FunctionalTests (3)
ResponseHeaderTests.cs (2)
112Assert.Equal(0, context.Response.Headers[tag].Count); 116Assert.Equal(0, context.Response.Headers[tag].Count);
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
149if (value.Count == 1)
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
226if (newValue.Count != 0)
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgery.cs (1)
381if (responseHeaders.TryGetValue(HeaderNames.Pragma, out var pragmaHeader) && pragmaHeader.Count > 0)
Internal\DefaultAntiforgeryTokenStore.cs (1)
51if (requestToken.Count == 0 && httpContext.Request.HasFormContentType && !_options.SuppressReadingTokenFromFormBody)
Microsoft.AspNetCore.Components.Endpoints (4)
FormMapping\Converters\CollectionConverter.cs (1)
229for (var i = 0; i < values.Count; i++)
FormMapping\FormDataReader.cs (1)
246var foundSingleValue = _readOnlyMemoryKeys.TryGetValue(new FormKey(_currentPrefixBuffer), out var result) || result.Count == 1;
RazorComponentEndpointInvoker.cs (1)
247if (value.Count != 1)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
309return accept.Count == 1 && string.Equals(accept[0]!, "text/html; blazor-enhanced-nav=on", StringComparison.Ordinal);
Microsoft.AspNetCore.CookiePolicy.Test (13)
CookieChunkingTests.cs (6)
54Assert.Equal(4, values.Count); 73Assert.Equal(4, values.Count); 215Assert.Equal(8, cookies.Count); 237Assert.Equal(3, cookies.Count); 255Assert.Equal(3, cookies.Count); 303Assert.Equal(8, httpContext.Response.Headers[HeaderNames.SetCookie].Count);
CookieConsentTests.cs (7)
49Assert.Equal(0, httpContext.Response.Headers.SetCookie.Count); 68Assert.Equal(0, httpContext.Response.Headers.SetCookie.Count); 143Assert.Equal(0, httpContext.Response.Headers.SetCookie.Count); 189Assert.Equal(0, httpContext.Response.Headers.SetCookie.Count); 338Assert.Equal(0, httpContext.Response.Headers.SetCookie.Count); 366Assert.Equal(0, httpContext.Response.Headers.SetCookie.Count); 544Assert.Equal(0, httpContext.Response.Headers.SetCookie.Count);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Latency\AddServerTimingHeaderMiddlewareTests.cs (1)
46Assert.True(header.Count > 0);
Latency\RequestLatencyTelemetryMiddlewareTests.cs (2)
45Assert.True(header.Count > 0); 103Assert.True(header.Count > 0);
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\JsonRequestHelpers.cs (1)
297var value = item.Value.Count == 1 ? (object?)item.Value[0] : item.Value;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
297if (stringValues.Count == 1)
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
297if (stringValues.Count == 1)
Microsoft.AspNetCore.HeaderParsing (8)
Parsers\CacheControlHeaderValueParser.cs (1)
16if (values.Count != 1 || !CacheControlHeaderValue.TryParse(values[0], out var parsedValue))
Parsers\ContentDispositionHeaderValueParser.cs (1)
16if (values.Count != 1 || !ContentDispositionHeaderValue.TryParse(values[0], out var parsedValue))
Parsers\DateTimeOffsetParser.cs (1)
17if (values.Count != 1 || !HeaderUtilities.TryParseDate(values[0], out var parsedValue))
Parsers\HostHeaderValueParser.cs (1)
15if (values.Count != 1 || !HostHeaderValue.TryParse(values[0]!, out var parsedValue))
Parsers\MediaTypeHeaderValueParser.cs (1)
16if (values.Count != 1 || !MediaTypeHeaderValue.TryParse(values[0], out var parsedValue))
Parsers\RangeConditionHeaderValueParser.cs (1)
16if (values.Count != 1 || !RangeConditionHeaderValue.TryParse(values[0], out var parsedValue))
Parsers\RangeHeaderValueParser.cs (1)
16if (values.Count != 1 || !RangeHeaderValue.TryParse(values[0], out var parsedValue))
Parsers\UriParser.cs (1)
16if (values.Count != 1 || !Uri.TryCreate(values[0], UriKind.RelativeOrAbsolute, out var parsedValue))
Microsoft.AspNetCore.HeaderPropagation (1)
HeaderPropagationMessageHandler.cs (1)
67if (stringValues.Count == 1)
Microsoft.AspNetCore.Http (6)
Features\QueryFeature.cs (1)
157if (values.Count != 0)
HeaderDictionary.cs (2)
88if (value.Count == 0) 125if (rawValue.Count == 1 &&
Internal\RequestCookieCollection.cs (1)
65if (values.Count == 0)
src\Http\Shared\CookieHeaderParserShared.cs (2)
22if (values.Count == 0) 28for (var i = 0; i < values.Count; i++)
Microsoft.AspNetCore.Http.Abstractions (2)
Internal\HeaderSegmentCollection.cs (1)
166if (_index == _headers.Count)
Internal\ParsingHelpers.cs (1)
128if (values.Count == 0)
Microsoft.AspNetCore.Http.Extensions (2)
src\Components\Endpoints\src\FormMapping\Converters\CollectionConverter.cs (1)
229for (var i = 0; i < values.Count; i++)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
246var foundSingleValue = _readOnlyMemoryKeys.TryGetValue(new FormKey(_currentPrefixBuffer), out var result) || result.Count == 1;
Microsoft.AspNetCore.Http.Results (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.Http.Results.Tests (31)
src\Shared\ResultsTests\FileContentResultTestBase.cs (5)
223Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 293Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 294Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 328Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 329Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (5)
211Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 285Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 286Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 321Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 323Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (12)
58Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 89Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 118Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 145Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 173Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 174Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 206Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 233Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 234Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 260Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 261Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 318Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
70Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 208Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 209Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 248Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 279Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 280Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 310Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 311Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 353Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
Microsoft.AspNetCore.Http.Tests (1)
Internal\DefaultHttpRequestTests.cs (1)
168Assert.Equal(0, cookieHeaders.Count);
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ValueProviderResult.cs (3)
74if (Values.Count == 0) 85public int Length => Values.Count; 105for (var i = 0; i < x.Count; i++)
Microsoft.AspNetCore.Mvc.Abstractions.Test (3)
ModelBinding\ValueProviderResultTest.cs (3)
18Assert.Equal(0, result.Values.Count); 33Assert.Equal(0, result.Values.Count); 48Assert.Equal(0, result.Values.Count);
Microsoft.AspNetCore.Mvc.Core (7)
Formatters\FormatFilter.cs (1)
47if (query.Count > 0)
ModelBinding\FormValueProvider.cs (2)
37if (_values.TryGetValue(FormValueHelper.CultureInvariantFieldName, out var invariantKeys) && invariantKeys.Count > 0) 95if (values.Count == 0)
ModelBinding\JQueryFormValueProvider.cs (1)
30if (values.TryGetValue(FormValueHelper.CultureInvariantFieldName, out var invariantKeys) && invariantKeys.Count > 0)
ModelBinding\JQueryValueProvider.cs (1)
77if (_values.TryGetValue(key, out var values) && values.Count > 0)
ModelBinding\QueryStringValueProvider.cs (1)
88if (values.Count == 0)
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.Mvc.Core.Test (34)
CreatedResultTests.cs (1)
91Assert.Equal(0, httpContext.Response.Headers["Location"].Count);
ModelBinding\Binders\CollectionModelBinderTest.cs (2)
508if (value.Values.Count == 1) 512else if (value.Values.Count > 1)
src\Shared\ResultsTests\FileContentResultTestBase.cs (5)
223Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 293Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 294Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 328Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 329Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (5)
211Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 285Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 286Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 321Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 323Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (12)
58Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 89Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 118Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 145Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 173Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 174Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 206Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 233Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 234Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 260Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 261Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 318Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
70Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 208Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 209Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 248Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 279Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 280Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 310Assert.Equal(0, httpResponse.Headers.ContentRange.Count); 311Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 353Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
Microsoft.AspNetCore.OutputCaching (4)
CacheEntryHelpers.cs (1)
41for (var i = 0; i < stringValues.Count; i++)
OutputCacheEntryFormatter.cs (1)
150var count = header.Value.Count;
Policies\VaryByHeaderPolicy.cs (1)
42if (_headerNames.Count == 0)
Policies\VaryByQueryPolicy.cs (1)
43if (_queryKeys.Count == 0)
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCachePoliciesTests.cs (2)
191Assert.Equal(0, context.CacheVaryByRules.HeaderNames.Count); 229Assert.Equal(0, context.CacheVaryByRules.QueryKeys.Count);
Microsoft.AspNetCore.RequestDecompression (1)
DefaultRequestDecompressionProvider.cs (1)
40if (encodings.Count > 1)
Microsoft.AspNetCore.RequestDecompression.Tests (3)
DefaultRequestDecompressionProviderTests.cs (2)
48Assert.Equal(0, contentEncodingHeader.Count); 73Assert.Equal(0, contentEncodingHeader.Count);
RequestDecompressionMiddlewareTests.cs (1)
322Assert.Equal(0, contentEncodingHeader.Count);
Microsoft.AspNetCore.ResponseCaching (8)
CacheEntry\CacheEntryHelpers.cs (1)
74for (var i = 0; i < stringValues.Count; i++)
ResponseCachingKeyProvider.cs (4)
99var headersCount = varyByRules?.Headers.Count ?? 0; 126if (varyByRules?.QueryKeys.Count > 0) 132if (varyByRules.QueryKeys.Count == 1 && string.Equals(varyByRules.QueryKeys[0], "*", StringComparison.Ordinal)) 161for (var i = 0; i < varyByRules.QueryKeys.Count; i++)
ResponseCachingMiddleware.cs (2)
435if (ifNoneMatchHeader.Count == 1 && StringSegment.Equals(ifNoneMatchHeader[0], EntityTagHeaderValue.Any.Tag, StringComparison.OrdinalIgnoreCase)) 485if (stringValues.Count == 1)
ResponseCachingPolicyProvider.cs (1)
102if (varyHeader.Count == 1 && string.Equals(varyHeader, "*", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.HttpSys (343)
RequestProcessing\Response.cs (12)
506if (headerValues.Count == 0) 515numUnknownHeaders += headerValues.Count; 517else if (headerValues.Count > 1) 529if (headerValues.Count == 0) 545for (var headerValueIndex = 0; headerValueIndex < headerValues.Count; headerValueIndex++) 560else if (headerValues.Count == 1) 585var headerAlloc = allocator.AllocAsPointer<HTTP_KNOWN_HEADER>(headerValues.Count); 586var nativeHeaderValues = new Span<HTTP_KNOWN_HEADER>(headerAlloc, headerValues.Count); 589for (var headerValueIndex = 0; headerValueIndex < headerValues.Count; headerValueIndex++) 615trailerCount += trailerPair.Value.Count; 631if (headerPair.Value.Count == 0) 639for (var headerValueIndex = 0; headerValueIndex < headerValues.Count; headerValueIndex++)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
130if (rawValue.Count == 1 &&
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
186if (rawValue.Count == 1 && 228if (value.Count == 0)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (328)
76return _Accept.Count > 0 ? _Accept : StringValues.Empty; 82_Accept = value.Count > 0 ? value : default; 100return _AcceptCharset.Count > 0 ? _AcceptCharset : StringValues.Empty; 106_AcceptCharset = value.Count > 0 ? value : default; 124return _AcceptEncoding.Count > 0 ? _AcceptEncoding : StringValues.Empty; 130_AcceptEncoding = value.Count > 0 ? value : default; 148return _AcceptLanguage.Count > 0 ? _AcceptLanguage : StringValues.Empty; 154_AcceptLanguage = value.Count > 0 ? value : default; 172return _Allow.Count > 0 ? _Allow : StringValues.Empty; 178_Allow = value.Count > 0 ? value : default; 196return _Authorization.Count > 0 ? _Authorization : StringValues.Empty; 202_Authorization = value.Count > 0 ? value : default; 220return _CacheControl.Count > 0 ? _CacheControl : StringValues.Empty; 226_CacheControl = value.Count > 0 ? value : default; 244return _Connection.Count > 0 ? _Connection : StringValues.Empty; 250_Connection = value.Count > 0 ? value : default; 268return _ContentEncoding.Count > 0 ? _ContentEncoding : StringValues.Empty; 274_ContentEncoding = value.Count > 0 ? value : default; 292return _ContentLanguage.Count > 0 ? _ContentLanguage : StringValues.Empty; 298_ContentLanguage = value.Count > 0 ? value : default; 316return _ContentLength.Count > 0 ? _ContentLength : StringValues.Empty; 322_ContentLength = value.Count > 0 ? value : default; 340return _ContentLocation.Count > 0 ? _ContentLocation : StringValues.Empty; 346_ContentLocation = value.Count > 0 ? value : default; 364return _ContentMD5.Count > 0 ? _ContentMD5 : StringValues.Empty; 370_ContentMD5 = value.Count > 0 ? value : default; 388return _ContentRange.Count > 0 ? _ContentRange : StringValues.Empty; 394_ContentRange = value.Count > 0 ? value : default; 412return _ContentType.Count > 0 ? _ContentType : StringValues.Empty; 418_ContentType = value.Count > 0 ? value : default; 436return _Cookie.Count > 0 ? _Cookie : StringValues.Empty; 442_Cookie = value.Count > 0 ? value : default; 460return _Date.Count > 0 ? _Date : StringValues.Empty; 466_Date = value.Count > 0 ? value : default; 484return _Expect.Count > 0 ? _Expect : StringValues.Empty; 490_Expect = value.Count > 0 ? value : default; 508return _Expires.Count > 0 ? _Expires : StringValues.Empty; 514_Expires = value.Count > 0 ? value : default; 532return _From.Count > 0 ? _From : StringValues.Empty; 538_From = value.Count > 0 ? value : default; 556return _Host.Count > 0 ? _Host : StringValues.Empty; 562_Host = value.Count > 0 ? value : default; 580return _IfMatch.Count > 0 ? _IfMatch : StringValues.Empty; 586_IfMatch = value.Count > 0 ? value : default; 604return _IfModifiedSince.Count > 0 ? _IfModifiedSince : StringValues.Empty; 610_IfModifiedSince = value.Count > 0 ? value : default; 628return _IfNoneMatch.Count > 0 ? _IfNoneMatch : StringValues.Empty; 634_IfNoneMatch = value.Count > 0 ? value : default; 652return _IfRange.Count > 0 ? _IfRange : StringValues.Empty; 658_IfRange = value.Count > 0 ? value : default; 676return _IfUnmodifiedSince.Count > 0 ? _IfUnmodifiedSince : StringValues.Empty; 682_IfUnmodifiedSince = value.Count > 0 ? value : default; 700return _KeepAlive.Count > 0 ? _KeepAlive : StringValues.Empty; 706_KeepAlive = value.Count > 0 ? value : default; 724return _LastModified.Count > 0 ? _LastModified : StringValues.Empty; 730_LastModified = value.Count > 0 ? value : default; 748return _MaxForwards.Count > 0 ? _MaxForwards : StringValues.Empty; 754_MaxForwards = value.Count > 0 ? value : default; 772return _Pragma.Count > 0 ? _Pragma : StringValues.Empty; 778_Pragma = value.Count > 0 ? value : default; 796return _ProxyAuthorization.Count > 0 ? _ProxyAuthorization : StringValues.Empty; 802_ProxyAuthorization = value.Count > 0 ? value : default; 820return _Range.Count > 0 ? _Range : StringValues.Empty; 826_Range = value.Count > 0 ? value : default; 844return _Referer.Count > 0 ? _Referer : StringValues.Empty; 850_Referer = value.Count > 0 ? value : default; 868return _TE.Count > 0 ? _TE : StringValues.Empty; 874_TE = value.Count > 0 ? value : default; 892return _Trailer.Count > 0 ? _Trailer : StringValues.Empty; 898_Trailer = value.Count > 0 ? value : default; 916return _TransferEncoding.Count > 0 ? _TransferEncoding : StringValues.Empty; 922_TransferEncoding = value.Count > 0 ? value : default; 940return _Translate.Count > 0 ? _Translate : StringValues.Empty; 946_Translate = value.Count > 0 ? value : default; 964return _Upgrade.Count > 0 ? _Upgrade : StringValues.Empty; 970_Upgrade = value.Count > 0 ? value : default; 988return _UserAgent.Count > 0 ? _UserAgent : StringValues.Empty; 994_UserAgent = value.Count > 0 ? value : default; 1012return _Via.Count > 0 ? _Via : StringValues.Empty; 1018_Via = value.Count > 0 ? value : default; 1036return _Warning.Count > 0 ? _Warning : StringValues.Empty; 1042_Warning = value.Count > 0 ? value : default; 1053return TE.Count > 0; 1059return Via.Count > 0; 1065return Date.Count > 0; 1069return From.Count > 0; 1073return Host.Count > 0; 1079return Allow.Count > 0; 1083return Range.Count > 0; 1089return Accept.Count > 0; 1093return Cookie.Count > 0; 1097return Expect.Count > 0; 1101return Pragma.Count > 0; 1107return Expires.Count > 0; 1111return Referer.Count > 0; 1115return Trailer.Count > 0; 1119return Upgrade.Count > 0; 1123return Warning.Count > 0; 1129return IfMatch.Count > 0; 1133return IfRange.Count > 0; 1139return Translate.Count > 0; 1145return Connection.Count > 0; 1149return KeepAlive.Count > 0; 1153return UserAgent.Count > 0; 1159return ContentMD5.Count > 0; 1165return ContentType.Count > 0; 1169return MaxForwards.Count > 0; 1175return Authorization.Count > 0; 1179return CacheControl.Count > 0; 1183return ContentRange.Count > 0; 1187return IfNoneMatch.Count > 0; 1191return LastModified.Count > 0; 1197return AcceptCharset.Count > 0; 1201return ContentLength.Count > 0; 1207return AcceptEncoding.Count > 0; 1211return AcceptLanguage.Count > 0; 1217return ContentEncoding.Count > 0; 1221return ContentLanguage.Count > 0; 1225return ContentLocation.Count > 0; 1231return IfModifiedSince.Count > 0; 1235return TransferEncoding.Count > 0; 1241return IfUnmodifiedSince.Count > 0; 1245return ProxyAuthorization.Count > 0; 1260return value.Count > 0; 1267return value.Count > 0; 1274return value.Count > 0; 1279return value.Count > 0; 1284return value.Count > 0; 1291return value.Count > 0; 1296return value.Count > 0; 1303return value.Count > 0; 1308return value.Count > 0; 1313return value.Count > 0; 1318return value.Count > 0; 1325return value.Count > 0; 1330return value.Count > 0; 1335return value.Count > 0; 1340return value.Count > 0; 1345return value.Count > 0; 1352return value.Count > 0; 1357return value.Count > 0; 1364return value.Count > 0; 1371return value.Count > 0; 1376return value.Count > 0; 1381return value.Count > 0; 1388return value.Count > 0; 1395return value.Count > 0; 1400return value.Count > 0; 1407return value.Count > 0; 1412return value.Count > 0; 1417return value.Count > 0; 1422return value.Count > 0; 1427return value.Count > 0; 1434return value.Count > 0; 1439return value.Count > 0; 1446return value.Count > 0; 1451return value.Count > 0; 1458return value.Count > 0; 1463return value.Count > 0; 1468return value.Count > 0; 1475return value.Count > 0; 1480return value.Count > 0; 1487return value.Count > 0; 1492return value.Count > 0; 2201if (Accept.Count > 0) 2205if (AcceptCharset.Count > 0) 2209if (AcceptEncoding.Count > 0) 2213if (AcceptLanguage.Count > 0) 2217if (Allow.Count > 0) 2221if (Authorization.Count > 0) 2225if (CacheControl.Count > 0) 2229if (Connection.Count > 0) 2233if (ContentEncoding.Count > 0) 2237if (ContentLanguage.Count > 0) 2241if (ContentLength.Count > 0) 2245if (ContentLocation.Count > 0) 2249if (ContentMD5.Count > 0) 2253if (ContentRange.Count > 0) 2257if (ContentType.Count > 0) 2261if (Cookie.Count > 0) 2265if (Date.Count > 0) 2269if (Expect.Count > 0) 2273if (Expires.Count > 0) 2277if (From.Count > 0) 2281if (Host.Count > 0) 2285if (IfMatch.Count > 0) 2289if (IfModifiedSince.Count > 0) 2293if (IfNoneMatch.Count > 0) 2297if (IfRange.Count > 0) 2301if (IfUnmodifiedSince.Count > 0) 2305if (KeepAlive.Count > 0) 2309if (LastModified.Count > 0) 2313if (MaxForwards.Count > 0) 2317if (Pragma.Count > 0) 2321if (ProxyAuthorization.Count > 0) 2325if (Range.Count > 0) 2329if (Referer.Count > 0) 2333if (TE.Count > 0) 2337if (Trailer.Count > 0) 2341if (TransferEncoding.Count > 0) 2345if (Translate.Count > 0) 2349if (Upgrade.Count > 0) 2353if (UserAgent.Count > 0) 2357if (Via.Count > 0) 2361if (Warning.Count > 0) 2369if (Accept.Count > 0) 2373if (AcceptCharset.Count > 0) 2377if (AcceptEncoding.Count > 0) 2381if (AcceptLanguage.Count > 0) 2385if (Allow.Count > 0) 2389if (Authorization.Count > 0) 2393if (CacheControl.Count > 0) 2397if (Connection.Count > 0) 2401if (ContentEncoding.Count > 0) 2405if (ContentLanguage.Count > 0) 2409if (ContentLength.Count > 0) 2413if (ContentLocation.Count > 0) 2417if (ContentMD5.Count > 0) 2421if (ContentRange.Count > 0) 2425if (ContentType.Count > 0) 2429if (Cookie.Count > 0) 2433if (Date.Count > 0) 2437if (Expect.Count > 0) 2441if (Expires.Count > 0) 2445if (From.Count > 0) 2449if (Host.Count > 0) 2453if (IfMatch.Count > 0) 2457if (IfModifiedSince.Count > 0) 2461if (IfNoneMatch.Count > 0) 2465if (IfRange.Count > 0) 2469if (IfUnmodifiedSince.Count > 0) 2473if (KeepAlive.Count > 0) 2477if (LastModified.Count > 0) 2481if (MaxForwards.Count > 0) 2485if (Pragma.Count > 0) 2489if (ProxyAuthorization.Count > 0) 2493if (Range.Count > 0) 2497if (Referer.Count > 0) 2501if (TE.Count > 0) 2505if (Trailer.Count > 0) 2509if (TransferEncoding.Count > 0) 2513if (Translate.Count > 0) 2517if (Upgrade.Count > 0) 2521if (UserAgent.Count > 0) 2525if (Via.Count > 0) 2529if (Warning.Count > 0) 2537if (Accept.Count > 0) 2541if (AcceptCharset.Count > 0) 2545if (AcceptEncoding.Count > 0) 2549if (AcceptLanguage.Count > 0) 2553if (Allow.Count > 0) 2557if (Authorization.Count > 0) 2561if (CacheControl.Count > 0) 2565if (Connection.Count > 0) 2569if (ContentEncoding.Count > 0) 2573if (ContentLanguage.Count > 0) 2577if (ContentLength.Count > 0) 2581if (ContentLocation.Count > 0) 2585if (ContentMD5.Count > 0) 2589if (ContentRange.Count > 0) 2593if (ContentType.Count > 0) 2597if (Cookie.Count > 0) 2601if (Date.Count > 0) 2605if (Expect.Count > 0) 2609if (Expires.Count > 0) 2613if (From.Count > 0) 2617if (Host.Count > 0) 2621if (IfMatch.Count > 0) 2625if (IfModifiedSince.Count > 0) 2629if (IfNoneMatch.Count > 0) 2633if (IfRange.Count > 0) 2637if (IfUnmodifiedSince.Count > 0) 2641if (KeepAlive.Count > 0) 2645if (LastModified.Count > 0) 2649if (MaxForwards.Count > 0) 2653if (Pragma.Count > 0) 2657if (ProxyAuthorization.Count > 0) 2661if (Range.Count > 0) 2665if (Referer.Count > 0) 2669if (TE.Count > 0) 2673if (Trailer.Count > 0) 2677if (TransferEncoding.Count > 0) 2681if (Translate.Count > 0) 2685if (Upgrade.Count > 0) 2689if (UserAgent.Count > 0) 2693if (Via.Count > 0) 2697if (Warning.Count > 0) 2796HttpSysRequestHeader.Accept => (_flag0 & 0x1u) != 0 ? _Accept.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Accept), 2797HttpSysRequestHeader.AcceptCharset => (_flag0 & 0x2u) != 0 ? _AcceptCharset.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptCharset), 2798HttpSysRequestHeader.AcceptEncoding => (_flag0 & 0x4u) != 0 ? _AcceptEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptEncoding), 2799HttpSysRequestHeader.AcceptLanguage => (_flag0 & 0x8u) != 0 ? _AcceptLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptLanguage), 2800HttpSysRequestHeader.Allow => (_flag0 & 0x10u) != 0 ? _Allow.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Allow), 2801HttpSysRequestHeader.Authorization => (_flag0 & 0x20u) != 0 ? _Authorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Authorization), 2802HttpSysRequestHeader.CacheControl => (_flag0 & 0x40u) != 0 ? _CacheControl.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.CacheControl), 2803HttpSysRequestHeader.Connection => (_flag0 & 0x80u) != 0 ? _Connection.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Connection), 2804HttpSysRequestHeader.ContentEncoding => (_flag0 & 0x100u) != 0 ? _ContentEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentEncoding), 2805HttpSysRequestHeader.ContentLanguage => (_flag0 & 0x200u) != 0 ? _ContentLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLanguage), 2806HttpSysRequestHeader.ContentLength => (_flag0 & 0x400u) != 0 ? _ContentLength.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLength), 2807HttpSysRequestHeader.ContentLocation => (_flag0 & 0x800u) != 0 ? _ContentLocation.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLocation), 2808HttpSysRequestHeader.ContentMd5 => (_flag0 & 0x1000u) != 0 ? _ContentMD5.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentMd5), 2809HttpSysRequestHeader.ContentRange => (_flag0 & 0x2000u) != 0 ? _ContentRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentRange), 2810HttpSysRequestHeader.ContentType => (_flag0 & 0x4000u) != 0 ? _ContentType.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentType), 2811HttpSysRequestHeader.Cookie => (_flag0 & 0x8000u) != 0 ? _Cookie.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Cookie), 2812HttpSysRequestHeader.Date => (_flag0 & 0x10000u) != 0 ? _Date.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Date), 2813HttpSysRequestHeader.Expect => (_flag0 & 0x20000u) != 0 ? _Expect.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Expect), 2814HttpSysRequestHeader.Expires => (_flag0 & 0x40000u) != 0 ? _Expires.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Expires), 2815HttpSysRequestHeader.From => (_flag0 & 0x80000u) != 0 ? _From.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.From), 2816HttpSysRequestHeader.Host => (_flag0 & 0x100000u) != 0 ? _Host.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Host), 2817HttpSysRequestHeader.IfMatch => (_flag0 & 0x200000u) != 0 ? _IfMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfMatch), 2818HttpSysRequestHeader.IfModifiedSince => (_flag0 & 0x400000u) != 0 ? _IfModifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfModifiedSince), 2819HttpSysRequestHeader.IfNoneMatch => (_flag0 & 0x800000u) != 0 ? _IfNoneMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfNoneMatch), 2820HttpSysRequestHeader.IfRange => (_flag0 & 0x1000000u) != 0 ? _IfRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfRange), 2821HttpSysRequestHeader.IfUnmodifiedSince => (_flag0 & 0x2000000u) != 0 ? _IfUnmodifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfUnmodifiedSince), 2822HttpSysRequestHeader.KeepAlive => (_flag0 & 0x4000000u) != 0 ? _KeepAlive.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.KeepAlive), 2823HttpSysRequestHeader.LastModified => (_flag0 & 0x8000000u) != 0 ? _LastModified.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.LastModified), 2824HttpSysRequestHeader.MaxForwards => (_flag0 & 0x10000000u) != 0 ? _MaxForwards.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.MaxForwards), 2825HttpSysRequestHeader.Pragma => (_flag0 & 0x20000000u) != 0 ? _Pragma.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Pragma), 2826HttpSysRequestHeader.ProxyAuthorization => (_flag0 & 0x40000000u) != 0 ? _ProxyAuthorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ProxyAuthorization), 2827HttpSysRequestHeader.Range => (_flag0 & 0x80000000u) != 0 ? _Range.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Range), 2828HttpSysRequestHeader.Referer => (_flag1 & 0x1u) != 0 ? _Referer.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Referer), 2829HttpSysRequestHeader.Te => (_flag1 & 0x2u) != 0 ? _TE.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Te), 2830HttpSysRequestHeader.Trailer => (_flag1 & 0x4u) != 0 ? _Trailer.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Trailer), 2831HttpSysRequestHeader.TransferEncoding => (_flag1 & 0x8u) != 0 ? _TransferEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.TransferEncoding), 2832HttpSysRequestHeader.Translate => (_flag1 & 0x10u) != 0 ? _Translate.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Translate), 2833HttpSysRequestHeader.Upgrade => (_flag1 & 0x20u) != 0 ? _Upgrade.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Upgrade), 2834HttpSysRequestHeader.UserAgent => (_flag1 & 0x40u) != 0 ? _UserAgent.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.UserAgent), 2835HttpSysRequestHeader.Via => (_flag1 & 0x80u) != 0 ? _Via.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Via), 2836HttpSysRequestHeader.Warning => (_flag1 & 0x100u) != 0 ? _Warning.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Warning),
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseHeaderTests.cs (1)
290if (expectedValue.Count == 0)
Microsoft.AspNetCore.Server.IIS (335)
Core\IISHttpContext.cs (4)
598if (headerPair.Value.Count == 0) 604for (var i = 0; i < headerValues.Count; i++) 642if (headerValues.Count == 0) 651for (var i = 0; i < headerValues.Count; i++)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
130if (rawValue.Count == 1 &&
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
186if (rawValue.Count == 1 && 228if (value.Count == 0)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (328)
76return _Accept.Count > 0 ? _Accept : StringValues.Empty; 82_Accept = value.Count > 0 ? value : default; 100return _AcceptCharset.Count > 0 ? _AcceptCharset : StringValues.Empty; 106_AcceptCharset = value.Count > 0 ? value : default; 124return _AcceptEncoding.Count > 0 ? _AcceptEncoding : StringValues.Empty; 130_AcceptEncoding = value.Count > 0 ? value : default; 148return _AcceptLanguage.Count > 0 ? _AcceptLanguage : StringValues.Empty; 154_AcceptLanguage = value.Count > 0 ? value : default; 172return _Allow.Count > 0 ? _Allow : StringValues.Empty; 178_Allow = value.Count > 0 ? value : default; 196return _Authorization.Count > 0 ? _Authorization : StringValues.Empty; 202_Authorization = value.Count > 0 ? value : default; 220return _CacheControl.Count > 0 ? _CacheControl : StringValues.Empty; 226_CacheControl = value.Count > 0 ? value : default; 244return _Connection.Count > 0 ? _Connection : StringValues.Empty; 250_Connection = value.Count > 0 ? value : default; 268return _ContentEncoding.Count > 0 ? _ContentEncoding : StringValues.Empty; 274_ContentEncoding = value.Count > 0 ? value : default; 292return _ContentLanguage.Count > 0 ? _ContentLanguage : StringValues.Empty; 298_ContentLanguage = value.Count > 0 ? value : default; 316return _ContentLength.Count > 0 ? _ContentLength : StringValues.Empty; 322_ContentLength = value.Count > 0 ? value : default; 340return _ContentLocation.Count > 0 ? _ContentLocation : StringValues.Empty; 346_ContentLocation = value.Count > 0 ? value : default; 364return _ContentMD5.Count > 0 ? _ContentMD5 : StringValues.Empty; 370_ContentMD5 = value.Count > 0 ? value : default; 388return _ContentRange.Count > 0 ? _ContentRange : StringValues.Empty; 394_ContentRange = value.Count > 0 ? value : default; 412return _ContentType.Count > 0 ? _ContentType : StringValues.Empty; 418_ContentType = value.Count > 0 ? value : default; 436return _Cookie.Count > 0 ? _Cookie : StringValues.Empty; 442_Cookie = value.Count > 0 ? value : default; 460return _Date.Count > 0 ? _Date : StringValues.Empty; 466_Date = value.Count > 0 ? value : default; 484return _Expect.Count > 0 ? _Expect : StringValues.Empty; 490_Expect = value.Count > 0 ? value : default; 508return _Expires.Count > 0 ? _Expires : StringValues.Empty; 514_Expires = value.Count > 0 ? value : default; 532return _From.Count > 0 ? _From : StringValues.Empty; 538_From = value.Count > 0 ? value : default; 556return _Host.Count > 0 ? _Host : StringValues.Empty; 562_Host = value.Count > 0 ? value : default; 580return _IfMatch.Count > 0 ? _IfMatch : StringValues.Empty; 586_IfMatch = value.Count > 0 ? value : default; 604return _IfModifiedSince.Count > 0 ? _IfModifiedSince : StringValues.Empty; 610_IfModifiedSince = value.Count > 0 ? value : default; 628return _IfNoneMatch.Count > 0 ? _IfNoneMatch : StringValues.Empty; 634_IfNoneMatch = value.Count > 0 ? value : default; 652return _IfRange.Count > 0 ? _IfRange : StringValues.Empty; 658_IfRange = value.Count > 0 ? value : default; 676return _IfUnmodifiedSince.Count > 0 ? _IfUnmodifiedSince : StringValues.Empty; 682_IfUnmodifiedSince = value.Count > 0 ? value : default; 700return _KeepAlive.Count > 0 ? _KeepAlive : StringValues.Empty; 706_KeepAlive = value.Count > 0 ? value : default; 724return _LastModified.Count > 0 ? _LastModified : StringValues.Empty; 730_LastModified = value.Count > 0 ? value : default; 748return _MaxForwards.Count > 0 ? _MaxForwards : StringValues.Empty; 754_MaxForwards = value.Count > 0 ? value : default; 772return _Pragma.Count > 0 ? _Pragma : StringValues.Empty; 778_Pragma = value.Count > 0 ? value : default; 796return _ProxyAuthorization.Count > 0 ? _ProxyAuthorization : StringValues.Empty; 802_ProxyAuthorization = value.Count > 0 ? value : default; 820return _Range.Count > 0 ? _Range : StringValues.Empty; 826_Range = value.Count > 0 ? value : default; 844return _Referer.Count > 0 ? _Referer : StringValues.Empty; 850_Referer = value.Count > 0 ? value : default; 868return _TE.Count > 0 ? _TE : StringValues.Empty; 874_TE = value.Count > 0 ? value : default; 892return _Trailer.Count > 0 ? _Trailer : StringValues.Empty; 898_Trailer = value.Count > 0 ? value : default; 916return _TransferEncoding.Count > 0 ? _TransferEncoding : StringValues.Empty; 922_TransferEncoding = value.Count > 0 ? value : default; 940return _Translate.Count > 0 ? _Translate : StringValues.Empty; 946_Translate = value.Count > 0 ? value : default; 964return _Upgrade.Count > 0 ? _Upgrade : StringValues.Empty; 970_Upgrade = value.Count > 0 ? value : default; 988return _UserAgent.Count > 0 ? _UserAgent : StringValues.Empty; 994_UserAgent = value.Count > 0 ? value : default; 1012return _Via.Count > 0 ? _Via : StringValues.Empty; 1018_Via = value.Count > 0 ? value : default; 1036return _Warning.Count > 0 ? _Warning : StringValues.Empty; 1042_Warning = value.Count > 0 ? value : default; 1053return TE.Count > 0; 1059return Via.Count > 0; 1065return Date.Count > 0; 1069return From.Count > 0; 1073return Host.Count > 0; 1079return Allow.Count > 0; 1083return Range.Count > 0; 1089return Accept.Count > 0; 1093return Cookie.Count > 0; 1097return Expect.Count > 0; 1101return Pragma.Count > 0; 1107return Expires.Count > 0; 1111return Referer.Count > 0; 1115return Trailer.Count > 0; 1119return Upgrade.Count > 0; 1123return Warning.Count > 0; 1129return IfMatch.Count > 0; 1133return IfRange.Count > 0; 1139return Translate.Count > 0; 1145return Connection.Count > 0; 1149return KeepAlive.Count > 0; 1153return UserAgent.Count > 0; 1159return ContentMD5.Count > 0; 1165return ContentType.Count > 0; 1169return MaxForwards.Count > 0; 1175return Authorization.Count > 0; 1179return CacheControl.Count > 0; 1183return ContentRange.Count > 0; 1187return IfNoneMatch.Count > 0; 1191return LastModified.Count > 0; 1197return AcceptCharset.Count > 0; 1201return ContentLength.Count > 0; 1207return AcceptEncoding.Count > 0; 1211return AcceptLanguage.Count > 0; 1217return ContentEncoding.Count > 0; 1221return ContentLanguage.Count > 0; 1225return ContentLocation.Count > 0; 1231return IfModifiedSince.Count > 0; 1235return TransferEncoding.Count > 0; 1241return IfUnmodifiedSince.Count > 0; 1245return ProxyAuthorization.Count > 0; 1260return value.Count > 0; 1267return value.Count > 0; 1274return value.Count > 0; 1279return value.Count > 0; 1284return value.Count > 0; 1291return value.Count > 0; 1296return value.Count > 0; 1303return value.Count > 0; 1308return value.Count > 0; 1313return value.Count > 0; 1318return value.Count > 0; 1325return value.Count > 0; 1330return value.Count > 0; 1335return value.Count > 0; 1340return value.Count > 0; 1345return value.Count > 0; 1352return value.Count > 0; 1357return value.Count > 0; 1364return value.Count > 0; 1371return value.Count > 0; 1376return value.Count > 0; 1381return value.Count > 0; 1388return value.Count > 0; 1395return value.Count > 0; 1400return value.Count > 0; 1407return value.Count > 0; 1412return value.Count > 0; 1417return value.Count > 0; 1422return value.Count > 0; 1427return value.Count > 0; 1434return value.Count > 0; 1439return value.Count > 0; 1446return value.Count > 0; 1451return value.Count > 0; 1458return value.Count > 0; 1463return value.Count > 0; 1468return value.Count > 0; 1475return value.Count > 0; 1480return value.Count > 0; 1487return value.Count > 0; 1492return value.Count > 0; 2201if (Accept.Count > 0) 2205if (AcceptCharset.Count > 0) 2209if (AcceptEncoding.Count > 0) 2213if (AcceptLanguage.Count > 0) 2217if (Allow.Count > 0) 2221if (Authorization.Count > 0) 2225if (CacheControl.Count > 0) 2229if (Connection.Count > 0) 2233if (ContentEncoding.Count > 0) 2237if (ContentLanguage.Count > 0) 2241if (ContentLength.Count > 0) 2245if (ContentLocation.Count > 0) 2249if (ContentMD5.Count > 0) 2253if (ContentRange.Count > 0) 2257if (ContentType.Count > 0) 2261if (Cookie.Count > 0) 2265if (Date.Count > 0) 2269if (Expect.Count > 0) 2273if (Expires.Count > 0) 2277if (From.Count > 0) 2281if (Host.Count > 0) 2285if (IfMatch.Count > 0) 2289if (IfModifiedSince.Count > 0) 2293if (IfNoneMatch.Count > 0) 2297if (IfRange.Count > 0) 2301if (IfUnmodifiedSince.Count > 0) 2305if (KeepAlive.Count > 0) 2309if (LastModified.Count > 0) 2313if (MaxForwards.Count > 0) 2317if (Pragma.Count > 0) 2321if (ProxyAuthorization.Count > 0) 2325if (Range.Count > 0) 2329if (Referer.Count > 0) 2333if (TE.Count > 0) 2337if (Trailer.Count > 0) 2341if (TransferEncoding.Count > 0) 2345if (Translate.Count > 0) 2349if (Upgrade.Count > 0) 2353if (UserAgent.Count > 0) 2357if (Via.Count > 0) 2361if (Warning.Count > 0) 2369if (Accept.Count > 0) 2373if (AcceptCharset.Count > 0) 2377if (AcceptEncoding.Count > 0) 2381if (AcceptLanguage.Count > 0) 2385if (Allow.Count > 0) 2389if (Authorization.Count > 0) 2393if (CacheControl.Count > 0) 2397if (Connection.Count > 0) 2401if (ContentEncoding.Count > 0) 2405if (ContentLanguage.Count > 0) 2409if (ContentLength.Count > 0) 2413if (ContentLocation.Count > 0) 2417if (ContentMD5.Count > 0) 2421if (ContentRange.Count > 0) 2425if (ContentType.Count > 0) 2429if (Cookie.Count > 0) 2433if (Date.Count > 0) 2437if (Expect.Count > 0) 2441if (Expires.Count > 0) 2445if (From.Count > 0) 2449if (Host.Count > 0) 2453if (IfMatch.Count > 0) 2457if (IfModifiedSince.Count > 0) 2461if (IfNoneMatch.Count > 0) 2465if (IfRange.Count > 0) 2469if (IfUnmodifiedSince.Count > 0) 2473if (KeepAlive.Count > 0) 2477if (LastModified.Count > 0) 2481if (MaxForwards.Count > 0) 2485if (Pragma.Count > 0) 2489if (ProxyAuthorization.Count > 0) 2493if (Range.Count > 0) 2497if (Referer.Count > 0) 2501if (TE.Count > 0) 2505if (Trailer.Count > 0) 2509if (TransferEncoding.Count > 0) 2513if (Translate.Count > 0) 2517if (Upgrade.Count > 0) 2521if (UserAgent.Count > 0) 2525if (Via.Count > 0) 2529if (Warning.Count > 0) 2537if (Accept.Count > 0) 2541if (AcceptCharset.Count > 0) 2545if (AcceptEncoding.Count > 0) 2549if (AcceptLanguage.Count > 0) 2553if (Allow.Count > 0) 2557if (Authorization.Count > 0) 2561if (CacheControl.Count > 0) 2565if (Connection.Count > 0) 2569if (ContentEncoding.Count > 0) 2573if (ContentLanguage.Count > 0) 2577if (ContentLength.Count > 0) 2581if (ContentLocation.Count > 0) 2585if (ContentMD5.Count > 0) 2589if (ContentRange.Count > 0) 2593if (ContentType.Count > 0) 2597if (Cookie.Count > 0) 2601if (Date.Count > 0) 2605if (Expect.Count > 0) 2609if (Expires.Count > 0) 2613if (From.Count > 0) 2617if (Host.Count > 0) 2621if (IfMatch.Count > 0) 2625if (IfModifiedSince.Count > 0) 2629if (IfNoneMatch.Count > 0) 2633if (IfRange.Count > 0) 2637if (IfUnmodifiedSince.Count > 0) 2641if (KeepAlive.Count > 0) 2645if (LastModified.Count > 0) 2649if (MaxForwards.Count > 0) 2653if (Pragma.Count > 0) 2657if (ProxyAuthorization.Count > 0) 2661if (Range.Count > 0) 2665if (Referer.Count > 0) 2669if (TE.Count > 0) 2673if (Trailer.Count > 0) 2677if (TransferEncoding.Count > 0) 2681if (Translate.Count > 0) 2685if (Upgrade.Count > 0) 2689if (UserAgent.Count > 0) 2693if (Via.Count > 0) 2697if (Warning.Count > 0) 2796HttpSysRequestHeader.Accept => (_flag0 & 0x1u) != 0 ? _Accept.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Accept), 2797HttpSysRequestHeader.AcceptCharset => (_flag0 & 0x2u) != 0 ? _AcceptCharset.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptCharset), 2798HttpSysRequestHeader.AcceptEncoding => (_flag0 & 0x4u) != 0 ? _AcceptEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptEncoding), 2799HttpSysRequestHeader.AcceptLanguage => (_flag0 & 0x8u) != 0 ? _AcceptLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptLanguage), 2800HttpSysRequestHeader.Allow => (_flag0 & 0x10u) != 0 ? _Allow.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Allow), 2801HttpSysRequestHeader.Authorization => (_flag0 & 0x20u) != 0 ? _Authorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Authorization), 2802HttpSysRequestHeader.CacheControl => (_flag0 & 0x40u) != 0 ? _CacheControl.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.CacheControl), 2803HttpSysRequestHeader.Connection => (_flag0 & 0x80u) != 0 ? _Connection.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Connection), 2804HttpSysRequestHeader.ContentEncoding => (_flag0 & 0x100u) != 0 ? _ContentEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentEncoding), 2805HttpSysRequestHeader.ContentLanguage => (_flag0 & 0x200u) != 0 ? _ContentLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLanguage), 2806HttpSysRequestHeader.ContentLength => (_flag0 & 0x400u) != 0 ? _ContentLength.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLength), 2807HttpSysRequestHeader.ContentLocation => (_flag0 & 0x800u) != 0 ? _ContentLocation.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLocation), 2808HttpSysRequestHeader.ContentMd5 => (_flag0 & 0x1000u) != 0 ? _ContentMD5.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentMd5), 2809HttpSysRequestHeader.ContentRange => (_flag0 & 0x2000u) != 0 ? _ContentRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentRange), 2810HttpSysRequestHeader.ContentType => (_flag0 & 0x4000u) != 0 ? _ContentType.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentType), 2811HttpSysRequestHeader.Cookie => (_flag0 & 0x8000u) != 0 ? _Cookie.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Cookie), 2812HttpSysRequestHeader.Date => (_flag0 & 0x10000u) != 0 ? _Date.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Date), 2813HttpSysRequestHeader.Expect => (_flag0 & 0x20000u) != 0 ? _Expect.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Expect), 2814HttpSysRequestHeader.Expires => (_flag0 & 0x40000u) != 0 ? _Expires.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Expires), 2815HttpSysRequestHeader.From => (_flag0 & 0x80000u) != 0 ? _From.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.From), 2816HttpSysRequestHeader.Host => (_flag0 & 0x100000u) != 0 ? _Host.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Host), 2817HttpSysRequestHeader.IfMatch => (_flag0 & 0x200000u) != 0 ? _IfMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfMatch), 2818HttpSysRequestHeader.IfModifiedSince => (_flag0 & 0x400000u) != 0 ? _IfModifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfModifiedSince), 2819HttpSysRequestHeader.IfNoneMatch => (_flag0 & 0x800000u) != 0 ? _IfNoneMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfNoneMatch), 2820HttpSysRequestHeader.IfRange => (_flag0 & 0x1000000u) != 0 ? _IfRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfRange), 2821HttpSysRequestHeader.IfUnmodifiedSince => (_flag0 & 0x2000000u) != 0 ? _IfUnmodifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfUnmodifiedSince), 2822HttpSysRequestHeader.KeepAlive => (_flag0 & 0x4000000u) != 0 ? _KeepAlive.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.KeepAlive), 2823HttpSysRequestHeader.LastModified => (_flag0 & 0x8000000u) != 0 ? _LastModified.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.LastModified), 2824HttpSysRequestHeader.MaxForwards => (_flag0 & 0x10000000u) != 0 ? _MaxForwards.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.MaxForwards), 2825HttpSysRequestHeader.Pragma => (_flag0 & 0x20000000u) != 0 ? _Pragma.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Pragma), 2826HttpSysRequestHeader.ProxyAuthorization => (_flag0 & 0x40000000u) != 0 ? _ProxyAuthorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ProxyAuthorization), 2827HttpSysRequestHeader.Range => (_flag0 & 0x80000000u) != 0 ? _Range.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Range), 2828HttpSysRequestHeader.Referer => (_flag1 & 0x1u) != 0 ? _Referer.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Referer), 2829HttpSysRequestHeader.Te => (_flag1 & 0x2u) != 0 ? _TE.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Te), 2830HttpSysRequestHeader.Trailer => (_flag1 & 0x4u) != 0 ? _Trailer.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Trailer), 2831HttpSysRequestHeader.TransferEncoding => (_flag1 & 0x8u) != 0 ? _TransferEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.TransferEncoding), 2832HttpSysRequestHeader.Translate => (_flag1 & 0x10u) != 0 ? _Translate.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Translate), 2833HttpSysRequestHeader.Upgrade => (_flag1 & 0x20u) != 0 ? _Upgrade.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Upgrade), 2834HttpSysRequestHeader.UserAgent => (_flag1 & 0x40u) != 0 ? _UserAgent.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.UserAgent), 2835HttpSysRequestHeader.Via => (_flag1 & 0x80u) != 0 ? _Via.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Via), 2836HttpSysRequestHeader.Warning => (_flag1 & 0x100u) != 0 ? _Warning.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Warning),
Microsoft.AspNetCore.Server.Kestrel.Core (102)
Internal\Http\Http1MessageBody.cs (1)
147&& headers.HeaderTransferEncoding.Count == 0)
Internal\Http\HttpHeaders.cs (5)
67if (value.Count == 0) 200if (value.Count > 0 && !AddValueFast(key, value)) 282var count = headerValues.Count; 332var connectionCount = connection.Count; 537var transferEncodingCount = transferEncoding.Count;
Internal\Http\HttpHeaders.Generated.cs (89)
386public int HostCount => _headers._Host.Count; 612if (value.Count > 0) 640if (value.Count > 0) 668if (value.Count > 0) 696if (value.Count > 0) 724if (value.Count > 0) 752if (value.Count > 0) 780if (value.Count > 0) 808if (value.Count > 0) 836if (value.Count > 0) 864if (value.Count > 0) 892if (value.Count > 0) 920if (value.Count > 0) 948if (value.Count > 0) 976if (value.Count > 0) 1004if (value.Count > 0) 1032if (value.Count > 0) 1060if (value.Count > 0) 1088if (value.Count > 0) 1116if (value.Count > 0) 1144if (value.Count > 0) 1172if (value.Count > 0) 1200if (value.Count > 0) 1228if (value.Count > 0) 1256if (value.Count > 0) 1284if (value.Count > 0) 1312if (value.Count > 0) 1340if (value.Count > 0) 1368if (value.Count > 0) 1396if (value.Count > 0) 1424if (value.Count > 0) 1452if (value.Count > 0) 1480if (value.Count > 0) 1508if (value.Count > 0) 1536if (value.Count > 0) 1564if (value.Count > 0) 1592if (value.Count > 0) 1620if (value.Count > 0) 1648if (value.Count > 0) 1676if (value.Count > 0) 1704if (value.Count > 0) 1732if (value.Count > 0) 1760if (value.Count > 0) 1788if (value.Count > 0) 7886if (values.Count == 1) 8102if (values.Count == 1) 8305if (values.Count == 1) 8829if (value.Count > 0) 8859if (value.Count > 0) 8888if (value.Count > 0) 8918if (value.Count > 0) 8948if (value.Count > 0) 8977if (value.Count > 0) 9006if (value.Count > 0) 9035if (value.Count > 0) 9064if (value.Count > 0) 9093if (value.Count > 0) 9122if (value.Count > 0) 9151if (value.Count > 0) 9180if (value.Count > 0) 9209if (value.Count > 0) 9239if (value.Count > 0) 9268if (value.Count > 0) 9297if (value.Count > 0) 9326if (value.Count > 0) 9355if (value.Count > 0) 9384if (value.Count > 0) 9413if (value.Count > 0) 9442if (value.Count > 0) 9471if (value.Count > 0) 9500if (value.Count > 0) 9529if (value.Count > 0) 9558if (value.Count > 0) 9587if (value.Count > 0) 9616if (value.Count > 0) 9645if (value.Count > 0) 9674if (value.Count > 0) 9703if (value.Count > 0) 9732if (value.Count > 0) 9761if (value.Count > 0) 9791if (value.Count > 0) 9820if (value.Count > 0) 9849if (value.Count > 0) 9878if (value.Count > 0) 9907if (value.Count > 0) 15171var valueCount = values.Count; 15546if (value.Count > 0) 15575if (value.Count > 0) 15604if (value.Count > 0)
Internal\Http\HttpRequestHeaders.cs (1)
53if (HasCookie && _headers._Cookie.Count > 1)
Internal\Http2\Http2Stream.cs (1)
401if (host.Count > 1 || !HttpUtilities.IsHostHeaderValid(hostText))
Internal\Http3\Http3HeadersEnumerator.cs (1)
110if (value.Count == 1)
Internal\Http3\Http3Stream.cs (3)
830if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams && HttpRequestHeaders.HeaderProtocol.Count > 0) 1002if (Method == HttpMethod.Connect && HttpRequestHeaders.HeaderProtocol.Count == 0) 1122if (host.Count > 1 || !HttpUtilities.IsHostHeaderValid(hostText))
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
149if (value.Count == 1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
HttpRequestHeadersTests.cs (1)
804Assert.Equal(2, prevHeaderValue.Count);
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
149if (value.Count == 1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
149if (value.Count == 1)
Microsoft.AspNetCore.Shared.Tests (331)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
130if (rawValue.Count == 1 &&
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
186if (rawValue.Count == 1 && 228if (value.Count == 0)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (328)
76return _Accept.Count > 0 ? _Accept : StringValues.Empty; 82_Accept = value.Count > 0 ? value : default; 100return _AcceptCharset.Count > 0 ? _AcceptCharset : StringValues.Empty; 106_AcceptCharset = value.Count > 0 ? value : default; 124return _AcceptEncoding.Count > 0 ? _AcceptEncoding : StringValues.Empty; 130_AcceptEncoding = value.Count > 0 ? value : default; 148return _AcceptLanguage.Count > 0 ? _AcceptLanguage : StringValues.Empty; 154_AcceptLanguage = value.Count > 0 ? value : default; 172return _Allow.Count > 0 ? _Allow : StringValues.Empty; 178_Allow = value.Count > 0 ? value : default; 196return _Authorization.Count > 0 ? _Authorization : StringValues.Empty; 202_Authorization = value.Count > 0 ? value : default; 220return _CacheControl.Count > 0 ? _CacheControl : StringValues.Empty; 226_CacheControl = value.Count > 0 ? value : default; 244return _Connection.Count > 0 ? _Connection : StringValues.Empty; 250_Connection = value.Count > 0 ? value : default; 268return _ContentEncoding.Count > 0 ? _ContentEncoding : StringValues.Empty; 274_ContentEncoding = value.Count > 0 ? value : default; 292return _ContentLanguage.Count > 0 ? _ContentLanguage : StringValues.Empty; 298_ContentLanguage = value.Count > 0 ? value : default; 316return _ContentLength.Count > 0 ? _ContentLength : StringValues.Empty; 322_ContentLength = value.Count > 0 ? value : default; 340return _ContentLocation.Count > 0 ? _ContentLocation : StringValues.Empty; 346_ContentLocation = value.Count > 0 ? value : default; 364return _ContentMD5.Count > 0 ? _ContentMD5 : StringValues.Empty; 370_ContentMD5 = value.Count > 0 ? value : default; 388return _ContentRange.Count > 0 ? _ContentRange : StringValues.Empty; 394_ContentRange = value.Count > 0 ? value : default; 412return _ContentType.Count > 0 ? _ContentType : StringValues.Empty; 418_ContentType = value.Count > 0 ? value : default; 436return _Cookie.Count > 0 ? _Cookie : StringValues.Empty; 442_Cookie = value.Count > 0 ? value : default; 460return _Date.Count > 0 ? _Date : StringValues.Empty; 466_Date = value.Count > 0 ? value : default; 484return _Expect.Count > 0 ? _Expect : StringValues.Empty; 490_Expect = value.Count > 0 ? value : default; 508return _Expires.Count > 0 ? _Expires : StringValues.Empty; 514_Expires = value.Count > 0 ? value : default; 532return _From.Count > 0 ? _From : StringValues.Empty; 538_From = value.Count > 0 ? value : default; 556return _Host.Count > 0 ? _Host : StringValues.Empty; 562_Host = value.Count > 0 ? value : default; 580return _IfMatch.Count > 0 ? _IfMatch : StringValues.Empty; 586_IfMatch = value.Count > 0 ? value : default; 604return _IfModifiedSince.Count > 0 ? _IfModifiedSince : StringValues.Empty; 610_IfModifiedSince = value.Count > 0 ? value : default; 628return _IfNoneMatch.Count > 0 ? _IfNoneMatch : StringValues.Empty; 634_IfNoneMatch = value.Count > 0 ? value : default; 652return _IfRange.Count > 0 ? _IfRange : StringValues.Empty; 658_IfRange = value.Count > 0 ? value : default; 676return _IfUnmodifiedSince.Count > 0 ? _IfUnmodifiedSince : StringValues.Empty; 682_IfUnmodifiedSince = value.Count > 0 ? value : default; 700return _KeepAlive.Count > 0 ? _KeepAlive : StringValues.Empty; 706_KeepAlive = value.Count > 0 ? value : default; 724return _LastModified.Count > 0 ? _LastModified : StringValues.Empty; 730_LastModified = value.Count > 0 ? value : default; 748return _MaxForwards.Count > 0 ? _MaxForwards : StringValues.Empty; 754_MaxForwards = value.Count > 0 ? value : default; 772return _Pragma.Count > 0 ? _Pragma : StringValues.Empty; 778_Pragma = value.Count > 0 ? value : default; 796return _ProxyAuthorization.Count > 0 ? _ProxyAuthorization : StringValues.Empty; 802_ProxyAuthorization = value.Count > 0 ? value : default; 820return _Range.Count > 0 ? _Range : StringValues.Empty; 826_Range = value.Count > 0 ? value : default; 844return _Referer.Count > 0 ? _Referer : StringValues.Empty; 850_Referer = value.Count > 0 ? value : default; 868return _TE.Count > 0 ? _TE : StringValues.Empty; 874_TE = value.Count > 0 ? value : default; 892return _Trailer.Count > 0 ? _Trailer : StringValues.Empty; 898_Trailer = value.Count > 0 ? value : default; 916return _TransferEncoding.Count > 0 ? _TransferEncoding : StringValues.Empty; 922_TransferEncoding = value.Count > 0 ? value : default; 940return _Translate.Count > 0 ? _Translate : StringValues.Empty; 946_Translate = value.Count > 0 ? value : default; 964return _Upgrade.Count > 0 ? _Upgrade : StringValues.Empty; 970_Upgrade = value.Count > 0 ? value : default; 988return _UserAgent.Count > 0 ? _UserAgent : StringValues.Empty; 994_UserAgent = value.Count > 0 ? value : default; 1012return _Via.Count > 0 ? _Via : StringValues.Empty; 1018_Via = value.Count > 0 ? value : default; 1036return _Warning.Count > 0 ? _Warning : StringValues.Empty; 1042_Warning = value.Count > 0 ? value : default; 1053return TE.Count > 0; 1059return Via.Count > 0; 1065return Date.Count > 0; 1069return From.Count > 0; 1073return Host.Count > 0; 1079return Allow.Count > 0; 1083return Range.Count > 0; 1089return Accept.Count > 0; 1093return Cookie.Count > 0; 1097return Expect.Count > 0; 1101return Pragma.Count > 0; 1107return Expires.Count > 0; 1111return Referer.Count > 0; 1115return Trailer.Count > 0; 1119return Upgrade.Count > 0; 1123return Warning.Count > 0; 1129return IfMatch.Count > 0; 1133return IfRange.Count > 0; 1139return Translate.Count > 0; 1145return Connection.Count > 0; 1149return KeepAlive.Count > 0; 1153return UserAgent.Count > 0; 1159return ContentMD5.Count > 0; 1165return ContentType.Count > 0; 1169return MaxForwards.Count > 0; 1175return Authorization.Count > 0; 1179return CacheControl.Count > 0; 1183return ContentRange.Count > 0; 1187return IfNoneMatch.Count > 0; 1191return LastModified.Count > 0; 1197return AcceptCharset.Count > 0; 1201return ContentLength.Count > 0; 1207return AcceptEncoding.Count > 0; 1211return AcceptLanguage.Count > 0; 1217return ContentEncoding.Count > 0; 1221return ContentLanguage.Count > 0; 1225return ContentLocation.Count > 0; 1231return IfModifiedSince.Count > 0; 1235return TransferEncoding.Count > 0; 1241return IfUnmodifiedSince.Count > 0; 1245return ProxyAuthorization.Count > 0; 1260return value.Count > 0; 1267return value.Count > 0; 1274return value.Count > 0; 1279return value.Count > 0; 1284return value.Count > 0; 1291return value.Count > 0; 1296return value.Count > 0; 1303return value.Count > 0; 1308return value.Count > 0; 1313return value.Count > 0; 1318return value.Count > 0; 1325return value.Count > 0; 1330return value.Count > 0; 1335return value.Count > 0; 1340return value.Count > 0; 1345return value.Count > 0; 1352return value.Count > 0; 1357return value.Count > 0; 1364return value.Count > 0; 1371return value.Count > 0; 1376return value.Count > 0; 1381return value.Count > 0; 1388return value.Count > 0; 1395return value.Count > 0; 1400return value.Count > 0; 1407return value.Count > 0; 1412return value.Count > 0; 1417return value.Count > 0; 1422return value.Count > 0; 1427return value.Count > 0; 1434return value.Count > 0; 1439return value.Count > 0; 1446return value.Count > 0; 1451return value.Count > 0; 1458return value.Count > 0; 1463return value.Count > 0; 1468return value.Count > 0; 1475return value.Count > 0; 1480return value.Count > 0; 1487return value.Count > 0; 1492return value.Count > 0; 2201if (Accept.Count > 0) 2205if (AcceptCharset.Count > 0) 2209if (AcceptEncoding.Count > 0) 2213if (AcceptLanguage.Count > 0) 2217if (Allow.Count > 0) 2221if (Authorization.Count > 0) 2225if (CacheControl.Count > 0) 2229if (Connection.Count > 0) 2233if (ContentEncoding.Count > 0) 2237if (ContentLanguage.Count > 0) 2241if (ContentLength.Count > 0) 2245if (ContentLocation.Count > 0) 2249if (ContentMD5.Count > 0) 2253if (ContentRange.Count > 0) 2257if (ContentType.Count > 0) 2261if (Cookie.Count > 0) 2265if (Date.Count > 0) 2269if (Expect.Count > 0) 2273if (Expires.Count > 0) 2277if (From.Count > 0) 2281if (Host.Count > 0) 2285if (IfMatch.Count > 0) 2289if (IfModifiedSince.Count > 0) 2293if (IfNoneMatch.Count > 0) 2297if (IfRange.Count > 0) 2301if (IfUnmodifiedSince.Count > 0) 2305if (KeepAlive.Count > 0) 2309if (LastModified.Count > 0) 2313if (MaxForwards.Count > 0) 2317if (Pragma.Count > 0) 2321if (ProxyAuthorization.Count > 0) 2325if (Range.Count > 0) 2329if (Referer.Count > 0) 2333if (TE.Count > 0) 2337if (Trailer.Count > 0) 2341if (TransferEncoding.Count > 0) 2345if (Translate.Count > 0) 2349if (Upgrade.Count > 0) 2353if (UserAgent.Count > 0) 2357if (Via.Count > 0) 2361if (Warning.Count > 0) 2369if (Accept.Count > 0) 2373if (AcceptCharset.Count > 0) 2377if (AcceptEncoding.Count > 0) 2381if (AcceptLanguage.Count > 0) 2385if (Allow.Count > 0) 2389if (Authorization.Count > 0) 2393if (CacheControl.Count > 0) 2397if (Connection.Count > 0) 2401if (ContentEncoding.Count > 0) 2405if (ContentLanguage.Count > 0) 2409if (ContentLength.Count > 0) 2413if (ContentLocation.Count > 0) 2417if (ContentMD5.Count > 0) 2421if (ContentRange.Count > 0) 2425if (ContentType.Count > 0) 2429if (Cookie.Count > 0) 2433if (Date.Count > 0) 2437if (Expect.Count > 0) 2441if (Expires.Count > 0) 2445if (From.Count > 0) 2449if (Host.Count > 0) 2453if (IfMatch.Count > 0) 2457if (IfModifiedSince.Count > 0) 2461if (IfNoneMatch.Count > 0) 2465if (IfRange.Count > 0) 2469if (IfUnmodifiedSince.Count > 0) 2473if (KeepAlive.Count > 0) 2477if (LastModified.Count > 0) 2481if (MaxForwards.Count > 0) 2485if (Pragma.Count > 0) 2489if (ProxyAuthorization.Count > 0) 2493if (Range.Count > 0) 2497if (Referer.Count > 0) 2501if (TE.Count > 0) 2505if (Trailer.Count > 0) 2509if (TransferEncoding.Count > 0) 2513if (Translate.Count > 0) 2517if (Upgrade.Count > 0) 2521if (UserAgent.Count > 0) 2525if (Via.Count > 0) 2529if (Warning.Count > 0) 2537if (Accept.Count > 0) 2541if (AcceptCharset.Count > 0) 2545if (AcceptEncoding.Count > 0) 2549if (AcceptLanguage.Count > 0) 2553if (Allow.Count > 0) 2557if (Authorization.Count > 0) 2561if (CacheControl.Count > 0) 2565if (Connection.Count > 0) 2569if (ContentEncoding.Count > 0) 2573if (ContentLanguage.Count > 0) 2577if (ContentLength.Count > 0) 2581if (ContentLocation.Count > 0) 2585if (ContentMD5.Count > 0) 2589if (ContentRange.Count > 0) 2593if (ContentType.Count > 0) 2597if (Cookie.Count > 0) 2601if (Date.Count > 0) 2605if (Expect.Count > 0) 2609if (Expires.Count > 0) 2613if (From.Count > 0) 2617if (Host.Count > 0) 2621if (IfMatch.Count > 0) 2625if (IfModifiedSince.Count > 0) 2629if (IfNoneMatch.Count > 0) 2633if (IfRange.Count > 0) 2637if (IfUnmodifiedSince.Count > 0) 2641if (KeepAlive.Count > 0) 2645if (LastModified.Count > 0) 2649if (MaxForwards.Count > 0) 2653if (Pragma.Count > 0) 2657if (ProxyAuthorization.Count > 0) 2661if (Range.Count > 0) 2665if (Referer.Count > 0) 2669if (TE.Count > 0) 2673if (Trailer.Count > 0) 2677if (TransferEncoding.Count > 0) 2681if (Translate.Count > 0) 2685if (Upgrade.Count > 0) 2689if (UserAgent.Count > 0) 2693if (Via.Count > 0) 2697if (Warning.Count > 0) 2796HttpSysRequestHeader.Accept => (_flag0 & 0x1u) != 0 ? _Accept.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Accept), 2797HttpSysRequestHeader.AcceptCharset => (_flag0 & 0x2u) != 0 ? _AcceptCharset.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptCharset), 2798HttpSysRequestHeader.AcceptEncoding => (_flag0 & 0x4u) != 0 ? _AcceptEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptEncoding), 2799HttpSysRequestHeader.AcceptLanguage => (_flag0 & 0x8u) != 0 ? _AcceptLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.AcceptLanguage), 2800HttpSysRequestHeader.Allow => (_flag0 & 0x10u) != 0 ? _Allow.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Allow), 2801HttpSysRequestHeader.Authorization => (_flag0 & 0x20u) != 0 ? _Authorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Authorization), 2802HttpSysRequestHeader.CacheControl => (_flag0 & 0x40u) != 0 ? _CacheControl.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.CacheControl), 2803HttpSysRequestHeader.Connection => (_flag0 & 0x80u) != 0 ? _Connection.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Connection), 2804HttpSysRequestHeader.ContentEncoding => (_flag0 & 0x100u) != 0 ? _ContentEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentEncoding), 2805HttpSysRequestHeader.ContentLanguage => (_flag0 & 0x200u) != 0 ? _ContentLanguage.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLanguage), 2806HttpSysRequestHeader.ContentLength => (_flag0 & 0x400u) != 0 ? _ContentLength.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLength), 2807HttpSysRequestHeader.ContentLocation => (_flag0 & 0x800u) != 0 ? _ContentLocation.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentLocation), 2808HttpSysRequestHeader.ContentMd5 => (_flag0 & 0x1000u) != 0 ? _ContentMD5.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentMd5), 2809HttpSysRequestHeader.ContentRange => (_flag0 & 0x2000u) != 0 ? _ContentRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentRange), 2810HttpSysRequestHeader.ContentType => (_flag0 & 0x4000u) != 0 ? _ContentType.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ContentType), 2811HttpSysRequestHeader.Cookie => (_flag0 & 0x8000u) != 0 ? _Cookie.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Cookie), 2812HttpSysRequestHeader.Date => (_flag0 & 0x10000u) != 0 ? _Date.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Date), 2813HttpSysRequestHeader.Expect => (_flag0 & 0x20000u) != 0 ? _Expect.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Expect), 2814HttpSysRequestHeader.Expires => (_flag0 & 0x40000u) != 0 ? _Expires.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Expires), 2815HttpSysRequestHeader.From => (_flag0 & 0x80000u) != 0 ? _From.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.From), 2816HttpSysRequestHeader.Host => (_flag0 & 0x100000u) != 0 ? _Host.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Host), 2817HttpSysRequestHeader.IfMatch => (_flag0 & 0x200000u) != 0 ? _IfMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfMatch), 2818HttpSysRequestHeader.IfModifiedSince => (_flag0 & 0x400000u) != 0 ? _IfModifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfModifiedSince), 2819HttpSysRequestHeader.IfNoneMatch => (_flag0 & 0x800000u) != 0 ? _IfNoneMatch.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfNoneMatch), 2820HttpSysRequestHeader.IfRange => (_flag0 & 0x1000000u) != 0 ? _IfRange.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfRange), 2821HttpSysRequestHeader.IfUnmodifiedSince => (_flag0 & 0x2000000u) != 0 ? _IfUnmodifiedSince.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.IfUnmodifiedSince), 2822HttpSysRequestHeader.KeepAlive => (_flag0 & 0x4000000u) != 0 ? _KeepAlive.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.KeepAlive), 2823HttpSysRequestHeader.LastModified => (_flag0 & 0x8000000u) != 0 ? _LastModified.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.LastModified), 2824HttpSysRequestHeader.MaxForwards => (_flag0 & 0x10000000u) != 0 ? _MaxForwards.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.MaxForwards), 2825HttpSysRequestHeader.Pragma => (_flag0 & 0x20000000u) != 0 ? _Pragma.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Pragma), 2826HttpSysRequestHeader.ProxyAuthorization => (_flag0 & 0x40000000u) != 0 ? _ProxyAuthorization.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.ProxyAuthorization), 2827HttpSysRequestHeader.Range => (_flag0 & 0x80000000u) != 0 ? _Range.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Range), 2828HttpSysRequestHeader.Referer => (_flag1 & 0x1u) != 0 ? _Referer.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Referer), 2829HttpSysRequestHeader.Te => (_flag1 & 0x2u) != 0 ? _TE.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Te), 2830HttpSysRequestHeader.Trailer => (_flag1 & 0x4u) != 0 ? _Trailer.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Trailer), 2831HttpSysRequestHeader.TransferEncoding => (_flag1 & 0x8u) != 0 ? _TransferEncoding.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.TransferEncoding), 2832HttpSysRequestHeader.Translate => (_flag1 & 0x10u) != 0 ? _Translate.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Translate), 2833HttpSysRequestHeader.Upgrade => (_flag1 & 0x20u) != 0 ? _Upgrade.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Upgrade), 2834HttpSysRequestHeader.UserAgent => (_flag1 & 0x40u) != 0 ? _UserAgent.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.UserAgent), 2835HttpSysRequestHeader.Via => (_flag1 & 0x80u) != 0 ? _Via.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Via), 2836HttpSysRequestHeader.Warning => (_flag1 & 0x100u) != 0 ? _Warning.Count > 0 : _requestMemoryBlob.HasKnownHeader(HttpSysRequestHeader.Warning),
Microsoft.AspNetCore.StaticAssets (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.StaticFiles (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
48if (rawRangeHeader.Count > 1 || (rawRangeHeader[0] ?? string.Empty).Contains(','))
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
171if (ext.Count != 0)
Microsoft.AspNetCore.WebUtilities (2)
KeyValueAccumulator.cs (2)
31if (values.Count == 0) 36else if (values.Count == 1)
Microsoft.Extensions.Primitives (9)
StringValues.cs (9)
453int count1 = values1.Count; 454int count2 = values2.Count; 485int count = values.Count; 510int count = values.Count; 530int count = left.Count; 532if (count != right.Count) 743if (Count == 1) 745return Unsafe.As<string>(this[0])?.GetHashCode() ?? Count.GetHashCode(); 756return Unsafe.As<string>(value)?.GetHashCode() ?? Count.GetHashCode();
Microsoft.Net.Http.Headers (4)
HeaderUtilities.cs (2)
240for (var i = 0; i < headerValues.Count; i++) 296for (var i = 0; i < cacheControlDirectives.Count; i++)
src\Http\Shared\CookieHeaderParserShared.cs (2)
22if (values.Count == 0) 28for (var i = 0; i < values.Count; i++)