1 type derived from HttpResponse
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpResponse.cs (1)
14internal sealed class DefaultHttpResponse : HttpResponse
435 references to HttpResponse
BasicWebSite (2)
Formatters\CustomFormatter.cs (1)
36var response = context.HttpContext.Response;
Formatters\PlainTextFormatter.cs (1)
34var response = context.HttpContext.Response;
Benchmarks (2)
StartupUsingEndpointRouting.cs (1)
29var response = httpContext.Response;
StartupUsingRouter.cs (1)
23var response = httpContext.Response;
CookiePolicySample (1)
Startup.cs (1)
79var response = context.Response;
DefaultBuilder.SampleApp (1)
Startup.cs (1)
52private static async Task ShowConfig(HttpResponse response, IConfiguration config)
HttpAbstractions.SampleApp (1)
Program.cs (1)
41var response = context.Response;
IIS.Microbenchmarks (1)
PlaintextBenchmark.cs (1)
64public static Task WriteResponse(HttpResponse response)
InMemory.FunctionalTests (76)
ChunkedRequestTests.cs (12)
24var response = httpContext.Response; 41var response = httpContext.Response; 60var response = httpContext.Response; 176var response = httpContext.Response; 232var response = httpContext.Response; 360var response = httpContext.Response; 582var response = httpContext.Response; 663var response = httpContext.Response; 707var response = httpContext.Response; 913var response = httpContext.Response; 969var response = httpContext.Response; 1082var response = httpContext.Response;
ChunkedResponseTests.cs (23)
26var response = httpContext.Response; 90var response = httpContext.Response; 316var response = httpContext.Response; 354var response = httpContext.Response; 396var response = httpContext.Response; 426var response = httpContext.Response; 459var response = httpContext.Response; 493var response = httpContext.Response; 537var response = httpContext.Response; 575var response = httpContext.Response; 619var response = httpContext.Response; 664var response = httpContext.Response; 718var response = httpContext.Response; 774var response = httpContext.Response; 829var response = httpContext.Response; 871var response = httpContext.Response; 918var response = httpContext.Response; 959var response = httpContext.Response; 999var response = httpContext.Response; 1038var response = httpContext.Response; 1075var response = httpContext.Response; 1113var response = httpContext.Response; 1148var response = httpContext.Response;
Http2\Http2StreamTests.cs (15)
3876var response = httpContext.Response; 3922var response = httpContext.Response; 3968var response = httpContext.Response; 4020var response = httpContext.Response; 4073var response = httpContext.Response; 4119var response = httpContext.Response; 4169var response = httpContext.Response; 4214var response = httpContext.Response; 4256var response = httpContext.Response; 4373var response = httpContext.Response; 4437var response = httpContext.Response; 4488var response = httpContext.Response; 4574var response = httpContext.Response; 5843var response = context.Response; 5895var response = httpContext.Response;
Http3\Http3StreamTests.cs (1)
658var response = context.Response;
HttpsConnectionMiddlewareTests.cs (1)
1487var response = httpContext.Response;
KestrelMetricsTests.cs (1)
920var response = httpContext.Response;
RequestTests.cs (3)
1905var response = httpContext.Response; 1955var response = httpContext.Response; 2040var response = httpContext.Response;
ResponseTests.cs (16)
2328var response = httpContext.Response; 2426var response = httpContext.Response; 2481var response = httpContext.Response; 2535var response = httpContext.Response; 2580var response = httpContext.Response; 2630var response = httpContext.Response; 2682var response = httpContext.Response; 2727var response = httpContext.Response; 2768var response = httpContext.Response; 3548var response = httpContext.Response; 3579var response = httpContext.Response; 3612var response = httpContext.Response; 3642var response = httpContext.Response; 3674var response = httpContext.Response; 3712var response = httpContext.Response; 3775var response = httpContext.Response;
src\Servers\Kestrel\shared\test\TestApp.cs (4)
17var response = httpContext.Response; 30var response = httpContext.Response; 47var response = httpContext.Response; 64var response = httpContext.Response;
JwtBearerSample (1)
Startup.cs (1)
72var response = context.Response;
Microsoft.AspNetCore.Authentication (3)
AuthenticationHandler.cs (2)
44/// Gets the <see cref="HttpResponse" /> associated with the current request. 46protected HttpResponse Response
Events\BaseContext.cs (1)
53public HttpResponse Response => HttpContext.Response;
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
1153/// Adds the nonce to <see cref="HttpResponse.Cookies"/>. 1156/// <remarks><see cref="M:IResponseCookies.Append"/> of <see cref="HttpResponse.Cookies"/> is called to add a cookie with the name: 'OpenIdConnectAuthenticationDefaults.Nonce + <see cref="M:ISecureDataFormat{TData}.Protect"/>(nonce)' of <see cref="OpenIdConnectOptions.StringDataFormat"/>. 1176/// <see cref="M:ISecureDataFormat{TData}.Unprotect"/> of <see cref="OpenIdConnectOptions.StringDataFormat"/> is used to obtain the actual 'nonce'. If the nonce is found, then <see cref="M:IResponseCookies.Delete"/> of <see cref="HttpResponse.Cookies"/> is called.</remarks>
Microsoft.AspNetCore.Authentication.Test (15)
CertificateTests.cs (1)
821var response = context.Response;
CookieTests.cs (2)
1818var res = context.Response; 1886private static Task DescribeAsync(HttpResponse res, AuthenticateResult result)
DynamicSchemeTests.cs (1)
140var res = context.Response;
GoogleTests.cs (5)
169var res = context.Response; 221var res = context.Response; 273var res = context.Response; 350var res = context.Response; 1155var res = context.Response;
MicrosoftAccountTests.cs (1)
366var res = context.Response;
OpenIdConnect\TestServerBuilder.cs (1)
73var res = context.Response;
PolicyTests.cs (1)
473var res = context.Response;
TestExtensions.cs (2)
45public static Task DescribeAsync(this HttpResponse res, ClaimsPrincipal principal) 64public static Task DescribeAsync(this HttpResponse res, IEnumerable<AuthenticationToken> tokens)
TwitterTests.cs (1)
546var res = context.Response;
Microsoft.AspNetCore.Components.Endpoints (1)
Results\RazorComponentResultExecutor.cs (1)
26var response = httpContext.Response;
Microsoft.AspNetCore.Components.Server (1)
Builder\ServerComponentsEndpointOptions.cs (1)
15/// <see cref="HttpResponse"/> when <see cref="ConfigureWebSocketAcceptContext" /> is set.
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsService.cs (1)
152public virtual void ApplyResult(CorsResult result, HttpResponse response)
Infrastructure\ICorsService.cs (2)
26/// <param name="response">The <see cref="HttpResponse"/> associated with the current call.</param> 27void ApplyResult(CorsResult result, HttpResponse response);
Microsoft.AspNetCore.Cors.Test (1)
CorsMiddlewareTests.cs (1)
666var response = httpContext.Response;
Microsoft.AspNetCore.Diagnostics (3)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
255var headers = ((HttpResponse)state).Headers;
src\Shared\Diagnostics\BaseView.cs (1)
35protected HttpResponse Response { get; private set; } = default!;
src\Shared\RazorViews\BaseView.cs (1)
38protected HttpResponse Response { get; private set; } = default!;
Microsoft.AspNetCore.Diagnostics.Abstractions (1)
IStatusCodeReExecuteFeature.cs (1)
32/// The <see cref="HttpResponse.StatusCode"/> of the original response.
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (4)
DatabaseDeveloperPageExceptionFilter.cs (1)
95var response = errorContext.HttpContext.Response;
MigrationsEndPointMiddleware.cs (1)
131private static async Task WriteErrorToResponse(HttpResponse response, string error)
src\Shared\Diagnostics\BaseView.cs (1)
35protected HttpResponse Response { get; private set; } = default!;
src\Shared\RazorViews\BaseView.cs (1)
38protected HttpResponse Response { get; private set; } = default!;
Microsoft.AspNetCore.Diagnostics.Tests (3)
ExceptionHandlerTest.cs (1)
136var response = httpContext.Response;
StatusCodeMiddlewareTest.cs (2)
338endpoints.MapGet("/status", (HttpResponse response) => $"Status: {response.StatusCode}"); 376endpoints.MapGet("/status", (HttpResponse response) => $"Status: {response.StatusCode}");
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\JsonRequestHelpers.cs (3)
87public static async ValueTask SendErrorResponse(HttpResponse response, Encoding encoding, Metadata trailers, Status status, JsonSerializerOptions options) 166public static async ValueTask WriteResponseMessage(HttpResponse response, Encoding encoding, object responseBody, JsonSerializerOptions options, CancellationToken cancellationToken) 373var response = serverCallContext.HttpContext.Response;
Microsoft.AspNetCore.Hosting (12)
Internal\HostingApplicationDiagnostics.cs (8)
338[DynamicDependency(nameof(HttpResponse.StatusCode), typeof(HttpResponse))] 359[DynamicDependency(nameof(HttpResponse.StatusCode), typeof(HttpResponse))] 467[DynamicDependency(nameof(HttpResponse.StatusCode), typeof(HttpResponse))] 468[DynamicDependency(nameof(HttpResponse.Headers), typeof(HttpResponse))]
Internal\HostingRequestFinishedLog.cs (2)
31var response = _context.HttpContext.Response; 65var response = _context.HttpContext.Response;
Internal\HostingRequestUnhandledLog.cs (1)
43var response = _httpContext.Response;
src\Shared\RazorViews\BaseView.cs (1)
38protected HttpResponse Response { get; private set; } = default!;
Microsoft.AspNetCore.Http (3)
DefaultHttpContext.cs (1)
145public override HttpResponse Response => _response;
src\Shared\Debugger\HttpContextDebugFormatter.cs (2)
13public static string ResponseToString(HttpResponse response, string? reasonPhrase) 84private static string? ResolveReasonPhrase(HttpResponse response, string? reasonPhrase)
Microsoft.AspNetCore.Http.Abstractions (17)
Extensions\HttpResponseWritingExtensions.cs (6)
21/// <param name="response">The <see cref="HttpResponse"/>.</param> 26public static Task WriteAsync(this HttpResponse response, string text, CancellationToken cancellationToken = default(CancellationToken)) 37/// <param name="response">The <see cref="HttpResponse"/>.</param> 43public static Task WriteAsync(this HttpResponse response, string text, Encoding encoding, CancellationToken cancellationToken = default(CancellationToken)) 64private static async Task StartAndWriteAsyncAwaited(this HttpResponse response, string text, Encoding encoding, CancellationToken cancellationToken, Task startAsyncTask) 71private static void Write(this HttpResponse response, string text, Encoding encoding)
Extensions\ResponseTrailerExtensions.cs (4)
12/// and trailing headers in an <see cref="HttpResponse" />. 21public static void DeclareTrailer(this HttpResponse response, string trailerName) 31public static bool SupportsTrailers(this HttpResponse response) 44public static void AppendTrailer(this HttpResponse response, string trailerName, StringValues trailerValues)
HttpContext.cs (3)
30/// Gets the <see cref="HttpResponse"/> object for this request. 32public abstract HttpResponse Response { get; } 92public HttpResponse Response => _context.Response;
HttpResponse.cs (2)
163private sealed class HttpResponseDebugView(HttpResponse response) 165private readonly HttpResponse _response = response;
src\Shared\Debugger\HttpContextDebugFormatter.cs (2)
13public static string ResponseToString(HttpResponse response, string? reasonPhrase) 84private static string? ResolveReasonPhrase(HttpResponse response, string? reasonPhrase)
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
827private static void AddNoCacheHeaders(HttpResponse response)
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3791private static void AssertResponseHasCacheHeaders(HttpResponse response)
Microsoft.AspNetCore.Http.Extensions (32)
HeaderDictionaryTypeExtensions.cs (2)
33/// <param name="response">The <see cref="HttpResponse"/>.</param> 35public static ResponseHeaders GetTypedHeaders(this HttpResponse response)
HttpResponseJsonExtensions.cs (11)
37this HttpResponse response, 59this HttpResponse response, 81this HttpResponse response, 114this HttpResponse response, 132static async Task WriteAsJsonAsyncSlow(HttpResponse response, TValue value, JsonTypeInfo<TValue> jsonTypeInfo, 156this HttpResponse response, 174static async Task WriteAsJsonAsyncSlow(HttpResponse response, object? value, JsonTypeInfo jsonTypeInfo, 212this HttpResponse response, 235this HttpResponse response, 258this HttpResponse response, 310this HttpResponse response,
RequestDelegateFactory.cs (7)
103private static readonly MemberExpression StatusCodeExpr = Expression.Property(HttpResponseExpr, typeof(HttpResponse).GetProperty(nameof(HttpResponse.StatusCode))!); 118private static readonly MemberExpression FilterContextHttpContextStatusCodeExpr = Expression.Property(FilterContextHttpContextResponseExpr, typeof(HttpResponse).GetProperty(nameof(HttpResponse.StatusCode))!); 834else if (parameter.ParameterType == typeof(HttpResponse)) 2607private static Task WriteJsonResponseFast<T>(HttpResponse response, T value, JsonTypeInfo<T> jsonTypeInfo) 2610private static Task WriteJsonResponse<T>(HttpResponse response, T? value, JsonTypeInfo<T> jsonTypeInfo)
ResponseExtensions.cs (5)
9/// Extension methods for <see cref="HttpResponse"/>. 19/// <param name="response">The <see cref="HttpResponse"/> to clear.</param> 20public static void Clear(this HttpResponse response) 38/// <param name="response">The <see cref="HttpResponse"/> to redirect.</param> 42public static void Redirect(this HttpResponse response, string location, bool permanent, bool preserveMethod)
SendFileResponseExtensions.cs (6)
25public static Task SendFileAsync(this HttpResponse response, IFileInfo file, CancellationToken cancellationToken = default) 43public static Task SendFileAsync(this HttpResponse response, IFileInfo file, long offset, long? count, CancellationToken cancellationToken = default) 59public static Task SendFileAsync(this HttpResponse response, string fileName, CancellationToken cancellationToken = default) 77public static Task SendFileAsync(this HttpResponse response, string fileName, long offset, long? count, CancellationToken cancellationToken = default) 85private static async Task SendFileAsyncCore(HttpResponse response, IFileInfo file, long offset, long? count, CancellationToken cancellationToken) 112private static async Task SendFileAsyncCore(HttpResponse response, string fileName, long offset, long? count, CancellationToken cancellationToken = default)
src\Shared\RouteHandlers\ExecuteHandlerHelper.cs (1)
39public static Task WriteJsonResponseAsync<T>(HttpResponse response, T? value, JsonTypeInfo<T> jsonTypeInfo)
Microsoft.AspNetCore.Http.Extensions.Tests (11)
RequestDelegateFactoryTests.cs (2)
1280HttpResponse? httpResponseArgument = null; 1282void TestAction(HttpResponse httpResponse)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
234var httpResponse = httpContext.Response;
RequestDelegateGenerator\SharedTypes.cs (1)
714HttpResponse Response);
SendFileResponseExtensionsTests.cs (7)
14var response = new DefaultHttpContext().Response; 22var response = context.Response; 39var response = context.Response; 52var response = context.Response; 67var response = context.Response; 79var response = context.Response; 95var response = context.Response;
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
234var httpResponse = httpContext.Response;
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
714HttpResponse Response);
Microsoft.AspNetCore.Http.Results (10)
HttpResultsHelper.cs (1)
69var response = httpContext.Response;
PhysicalFileHttpResult.cs (1)
142var response = httpContext.Response;
src\Shared\ResponseContentTypeHelper.cs (2)
17/// 2. <see cref="HttpResponse.ContentType"/> property set on <see cref="HttpResponse"/>
src\Shared\ResultsHelpers\FileResultHelper.cs (5)
111var response = httpContext.Response; 292var response = httpContext.Response; 334private static long SetContentLength(HttpResponse response, RangeItemHeaderValue range) 358private static void SetLastModifiedAndEtagHeaders(HttpResponse response, DateTimeOffset? lastModified, EntityTagHeaderValue? etag) 371private static void SetAcceptRangeHeader(HttpResponse response)
VirtualFileHttpResult.cs (1)
137var response = httpContext.Response;
Microsoft.AspNetCore.Http.Results.Tests (35)
src\Shared\ResultsTests\FileContentResultTestBase.cs (8)
77var httpResponse = httpContext.Response; 115var httpResponse = httpContext.Response; 154var httpResponse = httpContext.Response; 188var httpResponse = httpContext.Response; 219var httpResponse = httpContext.Response; 250var httpResponse = httpContext.Response; 287var httpResponse = httpContext.Response; 321var httpResponse = httpContext.Response;
src\Shared\ResultsTests\FileStreamResultTestBase.cs (9)
55var httpResponse = httpContext.Response; 96var httpResponse = httpContext.Response; 137var httpResponse = httpContext.Response; 174var httpResponse = httpContext.Response; 207var httpResponse = httpContext.Response; 240var httpResponse = httpContext.Response; 279var httpResponse = httpContext.Response; 315var httpResponse = httpContext.Response; 356var httpResponse = httpContext.Response;
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
53var httpResponse = httpContext.Response; 84var httpResponse = httpContext.Response; 116var httpResponse = httpContext.Response; 143var httpResponse = httpContext.Response; 171var httpResponse = httpContext.Response; 198var httpResponse = httpContext.Response; 227var httpResponse = httpContext.Response; 254var httpResponse = httpContext.Response; 309var httpResponse = httpContext.Response;
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
65var httpResponse = httpContext.Response; 102var httpResponse = httpContext.Response; 139var httpResponse = httpContext.Response; 172var httpResponse = httpContext.Response; 206var httpResponse = httpContext.Response; 240var httpResponse = httpContext.Response; 276var httpResponse = httpContext.Response; 307var httpResponse = httpContext.Response; 344var httpResponse = httpContext.Response;
Microsoft.AspNetCore.Http.Tests (8)
Internal\DefaultHttpResponseTests.cs (8)
19var response = GetResponseWithContentLength(value.ToString(CultureInfo.InvariantCulture)); 29var response = GetResponseWithContentLength(contentLength: null); 43var response = GetResponseWithContentLength(contentLength); 53var response = GetResponseWithContentType(contentType: null); 238private static HttpResponse CreateResponse(IHeaderDictionary headers) 245private static HttpResponse GetResponseWithContentLength(string contentLength = null) 250private static HttpResponse GetResponseWithContentType(string contentType = null) 255private static HttpResponse GetResponseWithHeader(string headerName, string headerValue)
Microsoft.AspNetCore.HttpLogging (7)
HttpLoggingFields.cs (4)
74/// Flag for logging the HTTP Response <see cref="HttpResponse.StatusCode"/>. 96/// Flag for logging the HTTP Response <see cref="HttpResponse.Headers"/>. 97/// Response Headers are logged when the <see cref="HttpResponse.Body"/> is written to 132/// Flag for logging the HTTP Response <see cref="HttpResponse.Body"/>.
HttpLoggingMiddleware.cs (2)
186var response = context.Response; 331var response = logContext.HttpContext.Response;
W3CLoggingMiddleware.cs (1)
191var response = context.Response;
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
301var res = context.Response; 405private static async Task DescribeAsync(HttpResponse res, AuthenticateResult result)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Formatters\OutputFormatterWriteContext.cs (3)
36/// Write to <see cref="HttpResponse.Body"/> directly to write binary data to the response. 42/// <see cref="HttpResponse.Body"/> stream. Call this delegate to create a <see cref="TextWriter"/> 47/// <see cref="WriterFactory"/> delegate, and use <see cref="HttpResponse.Body"/> instead.
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
280parameterType == typeof(HttpResponse) ||
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
586Assert.Empty(GetApiDescription((HttpResponse response) => { }).ParameterDescriptions);
Microsoft.AspNetCore.Mvc.Core (22)
ControllerBase.cs (2)
45/// Gets the <see cref="HttpResponse"/> for the executing action. 47public HttpResponse Response => HttpContext?.Response!;
Formatters\HttpNoContentOutputFormatter.cs (1)
36var response = context.HttpContext.Response;
Formatters\OutputFormatter.cs (2)
166/// Sets the headers on <see cref="Microsoft.AspNetCore.Http.HttpResponse"/> object. 173var response = context.HttpContext.Response;
Formatters\StreamOutputFormatter.cs (1)
33var response = context.HttpContext.Response;
Formatters\StringOutputFormatter.cs (1)
54var response = context.HttpContext.Response;
Infrastructure\ContentResultExecutor.cs (1)
39var response = context.HttpContext.Response;
Infrastructure\IActionResultExecutor.cs (2)
12/// manipulating the <see cref="HttpResponse"/>. 23/// Asynchronously executes the action result, by modifying the <see cref="HttpResponse"/>.
Infrastructure\IHttpResponseStreamWriterFactory.cs (2)
11/// Creates <see cref="TextWriter"/> instances for writing to <see cref="Http.HttpResponse.Body"/>. 18/// <param name="stream">The <see cref="Stream"/>, usually <see cref="Http.HttpResponse.Body"/>.</param>
Infrastructure\PhysicalFileResultExecutor.cs (1)
78var response = httpContext.Response;
Infrastructure\SystemTextJsonResultExecutor.cs (1)
41var response = context.HttpContext.Response;
Infrastructure\VirtualFileResultExecutor.cs (1)
86var response = httpContext.Response;
src\Shared\ResponseContentTypeHelper.cs (2)
17/// 2. <see cref="HttpResponse.ContentType"/> property set on <see cref="HttpResponse"/>
src\Shared\ResultsHelpers\FileResultHelper.cs (5)
111var response = httpContext.Response; 292var response = httpContext.Response; 334private static long SetContentLength(HttpResponse response, RangeItemHeaderValue range) 358private static void SetLastModifiedAndEtagHeaders(HttpResponse response, DateTimeOffset? lastModified, EntityTagHeaderValue? etag) 371private static void SetAcceptRangeHeader(HttpResponse response)
Microsoft.AspNetCore.Mvc.Core.Test (53)
ControllerBaseTest.cs (3)
3033var response = Mock.Of<HttpResponse>(); 3041var innerResponse = controller.Response;
Filters\MiddlewareFilterTest.cs (2)
125var response = resourceExecutedContext.HttpContext.Response; 211var response = resourceExecutedContext.HttpContext.Response;
Formatters\FormatFilterTest.cs (4)
66httpContext.Setup(c => c.Response).Returns(new Mock<HttpResponse>().Object); 328httpContext.Setup(c => c.Response).Returns(new Mock<HttpResponse>().Object); 362var response = new Mock<HttpResponse>(); 402httpContext.Setup(c => c.Response).Returns(new Mock<HttpResponse>().Object);
Formatters\StringOutputFormatterTests.cs (1)
134var response = new Mock<HttpResponse>();
RedirectToActionResultTest.cs (2)
31var httpResponse = new Mock<HttpResponse>(); 61.Returns(new Mock<HttpResponse>().Object);
RedirectToPageResultTest.cs (3)
51var httpResponse = new Mock<HttpResponse>(); 192var httpResponse = new Mock<HttpResponse>(); 242var httpResponse = new Mock<HttpResponse>();
RedirectToRouteResultTest.cs (2)
31var httpResponse = new Mock<HttpResponse>(); 61.Returns(new Mock<HttpResponse>().Object);
ResponseCacheAttributeTest.cs (1)
219var response = context.HttpContext.Response;
src\Shared\ResultsTests\FileContentResultTestBase.cs (8)
77var httpResponse = httpContext.Response; 115var httpResponse = httpContext.Response; 154var httpResponse = httpContext.Response; 188var httpResponse = httpContext.Response; 219var httpResponse = httpContext.Response; 250var httpResponse = httpContext.Response; 287var httpResponse = httpContext.Response; 321var httpResponse = httpContext.Response;
src\Shared\ResultsTests\FileStreamResultTestBase.cs (9)
55var httpResponse = httpContext.Response; 96var httpResponse = httpContext.Response; 137var httpResponse = httpContext.Response; 174var httpResponse = httpContext.Response; 207var httpResponse = httpContext.Response; 240var httpResponse = httpContext.Response; 279var httpResponse = httpContext.Response; 315var httpResponse = httpContext.Response; 356var httpResponse = httpContext.Response;
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
53var httpResponse = httpContext.Response; 84var httpResponse = httpContext.Response; 116var httpResponse = httpContext.Response; 143var httpResponse = httpContext.Response; 171var httpResponse = httpContext.Response; 198var httpResponse = httpContext.Response; 227var httpResponse = httpContext.Response; 254var httpResponse = httpContext.Response; 309var httpResponse = httpContext.Response;
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (9)
65var httpResponse = httpContext.Response; 102var httpResponse = httpContext.Response; 139var httpResponse = httpContext.Response; 172var httpResponse = httpContext.Response; 206var httpResponse = httpContext.Response; 240var httpResponse = httpContext.Response; 276var httpResponse = httpContext.Response; 307var httpResponse = httpContext.Response; 344var httpResponse = httpContext.Response;
Microsoft.AspNetCore.Mvc.Cors.Test (4)
CorsAuthorizationFilterTest.cs (4)
40var response = authorizationContext.HttpContext.Response; 90var response = authorizationContext.HttpContext.Response; 192.Setup(o => o.ApplyResult(It.IsAny<CorsResult>(), It.IsAny<HttpResponse>())) 193.Callback<CorsResult, HttpResponse>((result1, response1) =>
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
XmlDataContractSerializerOutputFormatter.cs (1)
222var response = httpContext.Response;
XmlSerializerOutputFormatter.cs (1)
201var response = httpContext.Response;
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
354var response = outputFormatterContext.HttpContext.Response;
XmlSerializerOutputFormatterTest.cs (1)
408var response = outputFormatterContext.HttpContext.Response;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
NewtonsoftJsonOutputFormatter.cs (1)
142var response = context.HttpContext.Response;
NewtonsoftJsonResultExecutor.cs (1)
75var response = context.HttpContext.Response;
src\Shared\ResponseContentTypeHelper.cs (2)
17/// 2. <see cref="HttpResponse.ContentType"/> property set on <see cref="HttpResponse"/>
Microsoft.AspNetCore.Mvc.Razor (1)
RazorPageBase.cs (1)
673/// on the response stream, writing out any buffered content to the <see cref="HttpResponse.Body"/>.
Microsoft.AspNetCore.Mvc.RazorPages (4)
PageBase.cs (2)
50/// Gets the <see cref="HttpResponse"/>. 52public HttpResponse Response => HttpContext?.Response!;
PageModel.cs (2)
69/// Gets the <see cref="HttpResponse"/>. 71public HttpResponse Response => HttpContext?.Response!;
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewComponentResultExecutor.cs (1)
72var response = context.HttpContext.Response;
ViewExecutor.cs (1)
187var response = viewContext.HttpContext.Response;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewComponentResultTest.cs (1)
722private static string ReadBody(HttpResponse response)
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
426parameter.ParameterType == typeof(HttpResponse) ||
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
416Assert.Empty(GetOpenApiOperation((HttpResponse response) => { }).Parameters);
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
277internal static void Write(this HttpResponse response, string text)
Microsoft.AspNetCore.ResponseCaching (4)
ResponseCachingMiddleware.cs (3)
170var response = context.HttpContext.Response; 254var response = context.HttpContext.Response; 345var response = context.HttpContext.Response;
ResponseCachingPolicyProvider.cs (1)
91var response = context.HttpContext.Response;
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
263internal static void Write(this HttpResponse response, string text)
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionMiddlewareTest.cs (1)
1234Action<HttpResponse> addResponseAction = null,
Microsoft.AspNetCore.Rewrite (5)
RedirectRule.cs (1)
46var response = context.HttpContext.Response;
RedirectToHttpsRule.cs (1)
34var response = context.HttpContext.Response;
RedirectToWwwHelper.cs (1)
45var response = context.HttpContext.Response;
UrlActions\CustomResponseAction.cs (1)
24var response = context.HttpContext.Response;
UrlActions\RedirectAction.cs (1)
32var response = context.HttpContext.Response;
Microsoft.AspNetCore.Routing (6)
RequestDelegateRouteBuilderExtensions.cs (5)
91Func<HttpRequest, HttpResponse, RouteData, Task> handler) 133Func<HttpRequest, HttpResponse, RouteData, Task> handler) 175Func<HttpRequest, HttpResponse, RouteData, Task> handler) 217Func<HttpRequest, HttpResponse, RouteData, Task> handler) 235Func<HttpRequest, HttpResponse, RouteData, Task> handler)
src\Shared\RouteHandlers\ExecuteHandlerHelper.cs (1)
39public static Task WriteJsonResponseAsync<T>(HttpResponse response, T? value, JsonTypeInfo<T> jsonTypeInfo)
Microsoft.AspNetCore.Routing.Tests (2)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
904var httpResponse = httpContext.Response; 980var httpResponse = httpContext.Response;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
ResponseHeaderTests.cs (3)
190var response = httpContext.Response; 220var response = httpContext.Response; 251var response = httpContext.Response;
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\RazorViews\BaseView.cs (1)
38protected HttpResponse Response { get; private set; } = default!;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
src\Servers\Kestrel\shared\test\TestApp.cs (4)
17var response = httpContext.Response; 30var response = httpContext.Response; 47var response = httpContext.Response; 64var response = httpContext.Response;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
HeaderCollectionBenchmark.cs (1)
26private HttpResponse _response;
InMemoryTransportBenchmark.cs (1)
259public static Task WriteResponse(HttpResponse response)
NamedPipesTransportBenchmark.cs (1)
157public static Task WriteResponse(HttpResponse response)
ResponseHeaderCollectionBenchmark.cs (1)
27private HttpResponse _response;
Microsoft.AspNetCore.Session (1)
SessionMiddleware.cs (1)
143var response = _context.Response;
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
284public HttpResponse Response { get; }
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
21private readonly HttpResponse _response;
OpenIdConnectSample (4)
Startup.cs (4)
149var response = context.Response; 327private static async Task WriteHtmlAsync(HttpResponse response, Func<HttpResponse, Task> writeContent) 337private static async Task WriteTableHeader(HttpResponse response, IEnumerable<string> columns, IEnumerable<IEnumerable<string>> data)
PlaintextApp (1)
Startup.cs (1)
26var response = httpContext.Response;
RoutingSandbox (3)
HelloExtension\HelloMiddleware.cs (1)
32var response = context.Response;
UseEndpointRoutingStartup.cs (2)
48var response = httpContext.Response; 57var response = httpContext.Response;
RoutingWebSite (8)
HelloExtension\HelloMiddleware.cs (1)
32var response = context.Response;
UseEndpointRoutingStartup.cs (7)
50var response = httpContext.Response; 59var response = httpContext.Response; 80var response = httpContext.Response; 89var response = httpContext.Response; 100var response = httpContext.Response; 112var response = httpContext.Response; 141var response = httpContext.Response;
SocialSample (6)
Startup.cs (6)
259var response = context.Response; 277var response = context.Response; 398var response = context.Response; 413var response = context.Response; 447var response = context.Response; 490private async Task PrintRefreshedTokensAsync(HttpResponse response, JsonDocument payload, AuthenticationProperties authProperties)
Sockets.FunctionalTests (6)
src\Servers\Kestrel\shared\test\TestApp.cs (4)
17var response = httpContext.Response; 30var response = httpContext.Response; 47var response = httpContext.Response; 64var response = httpContext.Response;
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
859var response = httpContext.Response;
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
212var response = httpContext.Response;
WsFedSample (3)
Startup.cs (3)
129private static async Task WriteHtmlAsync(HttpResponse response, Func<HttpResponse, Task> writeContent) 139private static async Task WriteTableHeader(HttpResponse response, IEnumerable<string> columns, IEnumerable<IEnumerable<string>> data)