1 override of HasStarted
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpResponse.cs (1)
117public override bool HasStarted
62 references to HasStarted
InMemory.FunctionalTests (8)
Http2\Http2StreamTests.cs (2)
1556Assert.True(context.Response.HasStarted); 3797Assert.False(context.Response.HasStarted);
ResponseTests.cs (6)
3054Assert.True(httpContext.Response.HasStarted); 3143Assert.True(httpContext.Response.HasStarted); 3181Assert.True(httpContext.Response.HasStarted); 3211Assert.True(httpContext.Response.HasStarted); 3259Assert.False(httpContext.Response.HasStarted); 3289Assert.True(httpContext.Response.HasStarted);
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgery.cs (2)
66if (!httpContext.Response.HasStarted) 233if (!httpContext.Response.HasStarted)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
357else if (Response.HasStarted)
Microsoft.AspNetCore.Authentication.Test (2)
JwtBearerTests.cs (1)
876if (!context.Response.HasStarted)
JwtBearerTests_Handler.cs (1)
821if (!context.Response.HasStarted)
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
196if (httpContext.Response.HasStarted)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
269if (!_httpContext.Response.HasStarted && marker.Type is ComponentMarker.ServerMarkerType or ComponentMarker.AutoMarkerType)
Microsoft.AspNetCore.CookiePolicy (2)
ResponseCookiesWrapper.cs (2)
69if (!HasConsent && !Context.Response.HasStarted) 81if (HasConsent && !Context.Response.HasStarted)
Microsoft.AspNetCore.Diagnostics (6)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
125if (!context.Response.HasStarted) 140if (context.Response.HasStarted)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (3)
121if (!context.Response.HasStarted) 133if (context.Response.HasStarted) 205if (context.Response.HasStarted || handled || _options.StatusCodeSelector != null || context.Response.StatusCode != StatusCodes.Status404NotFound || _options.AllowStatusCode404Response)
StatusCodePage\StatusCodePagesMiddleware.cs (1)
67if (context.Response.HasStarted
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
DatabaseDeveloperPageExceptionFilter.cs (1)
97if (response.HasStarted)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\JsonRequestHelpers.cs (1)
89if (!response.HasStarted)
Internal\JsonTranscodingServerCallContext.cs (2)
209if (HttpContext.Response.HasStarted) 236if (!HttpContext.Response.HasStarted)
Microsoft.AspNetCore.Http (2)
Builder\ApplicationBuilder.cs (1)
184if (!context.Response.HasStarted)
Timeouts\RequestTimeoutsMiddleware.cs (1)
112if (context.Response.HasStarted)
Microsoft.AspNetCore.Http.Extensions (1)
ResponseExtensions.cs (1)
22if (response.HasStarted)
Microsoft.AspNetCore.Http.Extensions.Tests (13)
RequestDelegateFactoryTests.cs (1)
768Assert.False(httpContext.Response.HasStarted);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (2)
972Assert.False(httpContext.Response.HasStarted); 1011Assert.False(httpContext.Response.HasStarted);
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (10)
43Assert.False(httpContext.Response.HasStarted); 106Assert.False(httpContext.Response.HasStarted); 159Assert.False(httpContext.Response.HasStarted); 196Assert.False(httpContext.Response.HasStarted); 276Assert.False(httpContext.Response.HasStarted); 355Assert.False(httpContext.Response.HasStarted); 527Assert.False(httpContext.Response.HasStarted); 569Assert.False(httpContext.Response.HasStarted); 607Assert.False(httpContext.Response.HasStarted); 648Assert.False(httpContext.Response.HasStarted);
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
CookieTempDataProvider.cs (1)
86if (!context.Response.HasStarted)
Filters\SaveTempDataFilter.cs (3)
42if (!context.HttpContext.Response.HasStarted) 84if (!context.HttpContext.Response.HasStarted && context.Exception != null) 105if (!context.HttpContext.Response.HasStarted)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (9)
ResponseBodyTests.cs (2)
26Assert.True(httpContext.Response.HasStarted); 55Assert.True(httpContext.Response.HasStarted);
ResponseHeaderTests.cs (4)
225Assert.False(response.HasStarted); 227Assert.True(response.HasStarted); 256Assert.False(response.HasStarted); 258Assert.True(response.HasStarted);
ResponseSendFileTests.cs (1)
316Assert.True(httpContext.Response.HasStarted);
ResponseTests.cs (2)
29Assert.False(httpContext.Response.HasStarted); 240Assert.False(httpContext.Response.HasStarted);
Microsoft.AspNetCore.Session (1)
SessionMiddleware.cs (1)
155return (_shouldEstablishSession |= !_context.Response.HasStarted);
Microsoft.AspNetCore.TestHost (1)
WebSocketClient.cs (1)
138if (_httpContext.Response.HasStarted)
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
302preHasStarted = context.Response.HasStarted; 306postHasStarted = context.Response.HasStarted;
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
36if (ct.Response.HasStarted)
ServerComparison.TestSites (1)
StartupNtlmAuthentication.cs (1)
37if (context.Response.HasStarted)