90 references to IsNullOrEmpty
Microsoft.AspNetCore.Authentication.Cookies (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
277if (!StringValues.IsNullOrEmpty(existingValues))
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
99if (StringValues.IsNullOrEmpty(authorizationHeader))
Microsoft.AspNetCore.Authentication.OAuth (4)
OAuthHandler.cs (4)
83if (!StringValues.IsNullOrEmpty(error)) 109if (!StringValues.IsNullOrEmpty(errorDescription)) 113if (!StringValues.IsNullOrEmpty(errorUri)) 128if (StringValues.IsNullOrEmpty(code))
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterHandler.cs (3)
73if (!StringValues.IsNullOrEmpty(denied)) 85if (StringValues.IsNullOrEmpty(returnedToken)) 96if (StringValues.IsNullOrEmpty(oauthVerifier))
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
43if (StringValues.IsNullOrEmpty(accept))
Microsoft.AspNetCore.CookiePolicy.Test (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
277if (!StringValues.IsNullOrEmpty(existingValues))
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
224if (StringValues.IsNullOrEmpty(origin))
Microsoft.AspNetCore.HeaderPropagation (2)
HeaderPropagationMessageHandler.cs (1)
65!StringValues.IsNullOrEmpty(stringValues))
HeaderPropagationMiddleware.cs (1)
59if (!StringValues.IsNullOrEmpty(value))
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
146if (!StringValues.IsNullOrEmpty(existingValues))
Microsoft.AspNetCore.Http.Abstractions (4)
Internal\HeaderSegmentCollection.cs (1)
35return (!StringValues.IsNullOrEmpty(_headers) ? _headers.GetHashCode() : 0);
Internal\ParsingHelpers.cs (2)
54if (StringValues.IsNullOrEmpty(value)) 92if (!values.HasValue || StringValues.IsNullOrEmpty(values.GetValueOrDefault()))
QueryString.cs (1)
151if (StringValues.IsNullOrEmpty(pair.Value))
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionDispatcher.cs (3)
70if (!StringValues.IsNullOrEmpty(connectionToken)) 777if (StringValues.IsNullOrEmpty(connectionToken)) 806if (StringValues.IsNullOrEmpty(connectionToken))
Microsoft.AspNetCore.Http.Extensions (2)
HeaderDictionaryTypeExtensions.cs (2)
173if (StringValues.IsNullOrEmpty(headerValue)) 231if (StringValues.IsNullOrEmpty(values))
Microsoft.AspNetCore.Http.Results (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.HttpOverrides (1)
CertificateForwardingMiddleware.cs (1)
50if (!StringValues.IsNullOrEmpty(header))
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
277if (!StringValues.IsNullOrEmpty(existingValues))
src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.Mvc.Cors (3)
CorsAuthorizationFilter.cs (1)
92&& !StringValues.IsNullOrEmpty(accessControlRequestMethod))
CorsHttpMethodActionConstraint.cs (1)
35!StringValues.IsNullOrEmpty(accessControlRequestMethod))
DisableCorsAuthorizationFilter.cs (1)
32!StringValues.IsNullOrEmpty(accessControlRequestMethod))
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheMiddlewareTests.cs (1)
543Assert.True(StringValues.IsNullOrEmpty(context.HttpContext.Response.Headers.Date));
Microsoft.AspNetCore.RequestDecompression (1)
DefaultRequestDecompressionProvider.cs (1)
34if (StringValues.IsNullOrEmpty(encodings))
Microsoft.AspNetCore.ResponseCaching (11)
ResponseCachingKeyProvider.cs (2)
85if (StringValues.IsNullOrEmpty(varyByRules.Headers) && StringValues.IsNullOrEmpty(varyByRules.QueryKeys))
ResponseCachingMiddleware.cs (6)
270if (!StringValues.IsNullOrEmpty(varyHeaders) || !StringValues.IsNullOrEmpty(varyQueryKeys)) 347if (!response.ContentLength.HasValue && StringValues.IsNullOrEmpty(response.Headers.TransferEncoding)) 433if (!StringValues.IsNullOrEmpty(ifNoneMatchHeader)) 442if (!StringValues.IsNullOrEmpty(cachedResponseHeaders.ETag) 460if (!StringValues.IsNullOrEmpty(ifModifiedSince))
ResponseCachingPolicyProvider.cs (3)
24if (!StringValues.IsNullOrEmpty(request.Headers.Authorization)) 39if (!StringValues.IsNullOrEmpty(cacheControl)) 94if (!StringValues.IsNullOrEmpty(response.Headers.SetCookie))
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionProvider.cs (1)
81if (StringValues.IsNullOrEmpty(accept))
Microsoft.AspNetCore.Routing (4)
Matching\HttpMethodMatcherPolicy.cs (2)
121!StringValues.IsNullOrEmpty(accessControlRequestMethod)) 427!StringValues.IsNullOrEmpty(accessControlRequestMethod);
Matching\NegotiationMatcherPolicy.cs (2)
85if (StringValues.IsNullOrEmpty(header) || 403if (StringValues.IsNullOrEmpty(header) ||
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\Request.cs (1)
507if (StringValues.IsNullOrEmpty(Headers.ContentLength)) { return; }
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
77if (StringValues.IsNullOrEmpty(value))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
RequestHeaderTests.cs (3)
28Assert.False(StringValues.IsNullOrEmpty(requestHeaders["Host"])); 29Assert.True(StringValues.IsNullOrEmpty(requestHeaders["Accept"])); 45Assert.False(StringValues.IsNullOrEmpty(requestHeaders["Host"]));
ResponseTrailersTests.cs (1)
329if (StringValues.IsNullOrEmpty(expectedValue))
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
77if (StringValues.IsNullOrEmpty(value))
Microsoft.AspNetCore.Server.IISIntegration (2)
IISMiddleware.cs (2)
138if (!StringValues.IsNullOrEmpty(header)) 174if (!StringValues.IsNullOrEmpty(tokenHeader)
Microsoft.AspNetCore.Server.Kestrel.Core (21)
Internal\Http\HttpHeaders.Generated.cs (12)
400if (!StringValues.IsNullOrEmpty(value)) 424if (!StringValues.IsNullOrEmpty(value)) 448if (!StringValues.IsNullOrEmpty(value)) 472if (!StringValues.IsNullOrEmpty(value)) 496if (!StringValues.IsNullOrEmpty(value)) 520if (!StringValues.IsNullOrEmpty(value)) 544if (!StringValues.IsNullOrEmpty(value)) 568if (!StringValues.IsNullOrEmpty(value)) 8710if (!StringValues.IsNullOrEmpty(value)) 8735if (!StringValues.IsNullOrEmpty(value)) 8759if (!StringValues.IsNullOrEmpty(value)) 8784if (!StringValues.IsNullOrEmpty(value))
Internal\Http\HttpProtocol.cs (1)
1338if (ex is Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException kestrelEx && !StringValues.IsNullOrEmpty(kestrelEx.AllowedHeader))
Internal\Http2\Http2Stream.cs (7)
264if (!StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderProtocol)) 267if (StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderScheme) || StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderPath)) 276else if (!StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderScheme) || !StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderPath)) 287else if (!StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderProtocol)) 379if (!StringValues.IsNullOrEmpty(authority))
Internal\Http3\Http3Stream.cs (1)
1100if (!StringValues.IsNullOrEmpty(authority))
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
77if (StringValues.IsNullOrEmpty(value))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Startup.cs (1)
45if (!StringValues.IsNullOrEmpty(userNameHeader))
Microsoft.AspNetCore.StaticAssets (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.StaticFiles (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
70if (!StringValues.IsNullOrEmpty(originHeader) && webSocketFeature.IsWebSocketRequest)
Microsoft.Net.Http.Headers (2)
HeaderUtilities.cs (2)
234if (StringValues.IsNullOrEmpty(headerValues) || string.IsNullOrEmpty(targetValue)) 291if (StringValues.IsNullOrEmpty(cacheControlDirectives) || string.IsNullOrEmpty(targetDirectives))
SignalR.Client.FunctionalTestApp (3)
Startup.cs (3)
123if (!StringValues.IsNullOrEmpty(originHeader)) 130if (!StringValues.IsNullOrEmpty(requestMethod)) 136if (!StringValues.IsNullOrEmpty(requestHeaders))