81 references to IsNullOrEmpty
Microsoft.AspNetCore.Authentication.Cookies (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
277if (!StringValues.IsNullOrEmpty(existingValues))
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.Components.Endpoints (1)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
277if (!StringValues.IsNullOrEmpty(existingValues))
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
224if (StringValues.IsNullOrEmpty(origin))
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)
71if (!StringValues.IsNullOrEmpty(connectionToken)) 782if (StringValues.IsNullOrEmpty(connectionToken)) 811if (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\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.HttpOverrides (1)
CertificateForwardingMiddleware.cs (1)
50if (!StringValues.IsNullOrEmpty(header))
Microsoft.AspNetCore.Identity (4)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (4)
538if (StringValues.IsNullOrEmpty(userId_raw)) 547if (StringValues.IsNullOrEmpty(code_raw)) 580if (StringValues.IsNullOrEmpty(userId_raw)) 589if (StringValues.IsNullOrEmpty(code_raw))
Microsoft.AspNetCore.Mvc.Core (2)
src\aspnetcore\src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
277if (!StringValues.IsNullOrEmpty(existingValues))
src\aspnetcore\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 (5)
OutputCacheMiddleware.cs (3)
527if (!StringValues.IsNullOrEmpty(ifNoneMatchHeader)) 536&& !StringValues.IsNullOrEmpty(raw) 554if (!StringValues.IsNullOrEmpty(ifModifiedSince))
Policies\DefaultPolicy.cs (2)
47if (!StringValues.IsNullOrEmpty(response.Headers.SetCookie)) 76if (!StringValues.IsNullOrEmpty(request.Headers.Authorization) || request.HttpContext.User?.Identity?.IsAuthenticated == true)
Microsoft.AspNetCore.RequestDecompression (1)
DefaultRequestDecompressionProvider.cs (1)
34if (StringValues.IsNullOrEmpty(encodings))
Microsoft.AspNetCore.ResponseCaching (11)
ResponseCachingKeyProvider.cs (2)
89if (StringValues.IsNullOrEmpty(varyByRules.Headers) && StringValues.IsNullOrEmpty(varyByRules.QueryKeys))
ResponseCachingMiddleware.cs (6)
297if (!StringValues.IsNullOrEmpty(varyHeaders) || !StringValues.IsNullOrEmpty(varyQueryKeys)) 384if (!response.ContentLength.HasValue && StringValues.IsNullOrEmpty(response.Headers.TransferEncoding)) 470if (!StringValues.IsNullOrEmpty(ifNoneMatchHeader)) 479if (!StringValues.IsNullOrEmpty(cachedResponseHeaders.ETag) 497if (!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)
82if (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) || 432if (StringValues.IsNullOrEmpty(header) ||
Microsoft.AspNetCore.Server.IISIntegration (2)
IISMiddleware.cs (2)
138if (!StringValues.IsNullOrEmpty(header)) 174if (!StringValues.IsNullOrEmpty(tokenHeader)
Microsoft.AspNetCore.Server.Kestrel.Core (22)
Internal\Http\Http1Connection.cs (1)
1089|| StringValues.IsNullOrEmpty(kestrelEx.AllowedHeader)))
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)
1364if (ex is Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException kestrelEx && !StringValues.IsNullOrEmpty(kestrelEx.AllowedHeader))
Internal\Http2\Http2Stream.cs (7)
263if (!StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderProtocol)) 266if (StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderScheme) || StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderPath)) 275else if (!StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderScheme) || !StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderPath)) 286else if (!StringValues.IsNullOrEmpty(HttpRequestHeaders.HeaderProtocol)) 378if (!StringValues.IsNullOrEmpty(authority))
Internal\Http3\Http3Stream.cs (1)
1156if (!StringValues.IsNullOrEmpty(authority))
Microsoft.AspNetCore.StaticAssets (1)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.StaticFiles (1)
src\aspnetcore\src\Shared\RangeHelper\RangeHelper.cs (1)
41if (StringValues.IsNullOrEmpty(rawRangeHeader))
Microsoft.AspNetCore.Watch.BrowserRefresh (2)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserRefreshMiddleware.cs (2)
137!StringValues.IsNullOrEmpty(values) && 177!StringValues.IsNullOrEmpty(values) &&
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))