1254 references to WriteAsync
AutobahnTestApp (1)
AzureAppServicesHostingStartupSample (24)
AzureAppServicesSample (24)
BasicLinkedApp (1)
BasicWebSite (4)
Binding.Http.IntegrationTests (1)
blazor-devserver (1)
Certificate.Optional.Sample (2)
Certificate.Sample (1)
ConcurrencyLimiterSample (1)
CookiePolicySample (25)
CookieSample (4)
CookieSessionSample (2)
CreateDefaultBuilderApp (1)
CreateDefaultBuilderOfTApp (1)
CustomAuthorizationFailureResponse (2)
DefaultBuilder.SampleApp (25)
Program.cs (7)
22using (WebHost.Start(context => context.Response.WriteAsync("Hello, World!")))
33using (WebHost.Start("http://localhost:8080", context => context.Response.WriteAsync("Hello, World!")))
45.MapGet("hello/{name}", (req, res, data) => res.WriteAsync($"Hello, {data.Values["name"]}"))
46.MapGet("goodbye/{name}", (req, res, data) => res.WriteAsync($"Goodbye, {data.Values["name"]}"))
48.MapGet("{greeting}/{name}", (req, res, data) => res.WriteAsync($"{data.Values["greeting"]}, {data.Values["name"]}"))
49.MapGet("", (req, res, data) => res.WriteAsync($"Hello, World!"))))
65await context.Response.WriteAsync("Hello, World!");
DelegationSite (1)
DependencyInjectionApp (2)
Diagnostics.EFCore.FunctionalTests (3)
ExceptionHandlerSample (14)
GenericWebHost (1)
HeaderPropagationSample (6)
HealthChecksSample (17)
HostFilteringSample (1)
HotAddSample (19)
Http2SampleApp (1)
Http3SampleApp (1)
HttpLogging.Sample (1)
HttpOverridesSample (5)
HttpsPolicySample (1)
HttpStress (5)
IIS.Tests (3)
IISSample (27)
InMemory.FunctionalTests (169)
Http2\Http2StreamTests.cs (46)
1336await context.Response.WriteAsync("hello, world"); // 12
1374await context.Response.WriteAsync("hello,");
1375await context.Response.WriteAsync(" world");
1596await context.Response.WriteAsync("hello, world");
1680await context.Response.WriteAsync("");
1716await context.Response.WriteAsync("hello, world");
1827return context.Response.WriteAsync("hello,");
2148await context.Response.WriteAsync("Hello World");
2189await context.Response.WriteAsync("Hello World");
2230await context.Response.WriteAsync("Hello World");
2360await context.Response.WriteAsync("Hello World");
2403await context.Response.WriteAsync("Hello World");
2468await context.Response.WriteAsync("Hello World");
2511await context.Response.WriteAsync("Hello World");
2564await context.Response.WriteAsync("Hello World");
2596await context.Response.WriteAsync("Hello World");
2638await context.Response.WriteAsync("Hello World");
2731await context.Response.WriteAsync("Hello World");
2791await context.Response.WriteAsync("Hello World");
2846await context.Response.WriteAsync("Hello World");
3134await context.Response.WriteAsync("hello,");
3530await context.Response.WriteAsync("Hello World");
3567await context.Response.WriteAsync("Hello World");
3605await context.Response.WriteAsync("Hello World");
3655await context.Response.WriteAsync("Hello World");
3684await context.Response.WriteAsync("Hello World");
3717await context.Response.WriteAsync("Hello World");
3756await context.Response.WriteAsync("Hello World");
3796await Assert.ThrowsAsync<OperationCanceledException>(() => context.Response.WriteAsync("hello,", new CancellationToken(true)));
3831var writeTask = context.Response.WriteAsync("hello,", cts.Token);
4176await response.WriteAsync(" world");
4387await response.WriteAsync("hello, world");
4587await response.WriteAsync("hello, world");
4671writeEx = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync(""));
4919await context.Response.WriteAsync("Hello World");
4990var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
5041await context.Response.WriteAsync("Hello World").DefaultTimeout();
5049var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.Response.WriteAsync("2 Hello World").DefaultTimeout());
5234await context.Response.WriteAsync("Hello World");
5309await context.Response.WriteAsync("Hello World");
5380await context.Response.WriteAsync("Hello World");
5449await context.Response.WriteAsync("Hello World");
5531await context.Response.WriteAsync("Hello World");
5613await context.Response.WriteAsync("Hello World");
5697await context.Response.WriteAsync("Hello World");
5850await response.WriteAsync("hello, world");
ResponseTests.cs (35)
81await context.Response.WriteAsync("hello, world");
156await context.Response.WriteAsync("hello", cts.Token).DefaultTimeout();
378await context.Response.WriteAsync("hello, world");
413await context.Response.WriteAsync("hello, world");
520await httpContext.Response.WriteAsync("hello, ");
521await httpContext.Response.WriteAsync("world");
800await httpContext.Response.WriteAsync("hello, world");
842await httpContext.Response.WriteAsync("hello, world");
915await httpContext.Response.WriteAsync(response);
1001await httpContext.Response.WriteAsync("hello,");
1002await httpContext.Response.WriteAsync(" world");
1118await httpContext.Response.WriteAsync("hello, world");
1172await httpContext.Response.WriteAsync("hello, world");
1226await httpContext.Response.WriteAsync("hello,");
1348await httpContext.Response.WriteAsync("hello, world");
1384await httpContext.Response.WriteAsync("hello, world");
1441await httpContext.Response.WriteAsync("hello, world");
1505await httpContext.Response.WriteAsync("");
1507await httpContext.Response.WriteAsync("hello, world");
1548await httpContext.Response.WriteAsync(ex.Message);
1580await httpContext.Response.WriteAsync("hello, world");
1626await httpContext.Response.WriteAsync("hello, world");
1673await httpContext.Response.WriteAsync("hello, world");
1968await httpContext.Response.WriteAsync("hello, world");
2156await httpContext.Response.WriteAsync("hello, world");
2965await httpContext.Response.WriteAsync("");
2992await httpContext.Response.WriteAsync("");
3022await httpContext.Response.WriteAsync("Hello World!");
3180await httpContext.Response.WriteAsync("Hello World");
3210await httpContext.Response.WriteAsync(expectedString);
3336await context.Response.WriteAsync(response);
3387await context.Response.WriteAsync(response);
3788await response.WriteAsync("hello, world");
3846writeEx = await Assert.ThrowsAsync<InvalidOperationException>(() => httpContext.Response.WriteAsync("test"));
3876await httpContext.Response.WriteAsync("hello, world");
InProcessWebSite (101)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (100)
58private async Task ContentRootPath(HttpContext ctx) => await ctx.Response.WriteAsync(ctx.RequestServices.GetService<Microsoft.AspNetCore.Hosting.IHostingEnvironment>().ContentRootPath);
60private async Task WebRootPath(HttpContext ctx) => await ctx.Response.WriteAsync(ctx.RequestServices.GetService<Microsoft.AspNetCore.Hosting.IHostingEnvironment>().WebRootPath);
67private async Task CurrentDirectory(HttpContext ctx) => await ctx.Response.WriteAsync(Environment.CurrentDirectory);
69private async Task BaseDirectory(HttpContext ctx) => await ctx.Response.WriteAsync(AppContext.BaseDirectory);
75await ctx.Response.WriteAsync("IIS Version: " + config["IIS_VERSION"] + Environment.NewLine);
76await ctx.Response.WriteAsync("ApplicationId: " + config["IIS_APPLICATION_ID"] + Environment.NewLine);
77await ctx.Response.WriteAsync("Application Path: " + config["IIS_PHYSICAL_PATH"] + Environment.NewLine);
78await ctx.Response.WriteAsync("Application Virtual Path: " + config["IIS_APPLICATION_VIRTUAL_PATH"] + Environment.NewLine);
79await ctx.Response.WriteAsync("Application Config Path: " + config["IIS_APP_CONFIG_PATH"] + Environment.NewLine);
80await ctx.Response.WriteAsync("AppPool ID: " + config["IIS_APP_POOL_ID"] + Environment.NewLine);
81await ctx.Response.WriteAsync("AppPool Config File: " + config["IIS_APP_POOL_CONFIG_FILE"] + Environment.NewLine);
82await ctx.Response.WriteAsync("Site ID: " + config["IIS_SITE_ID"] + Environment.NewLine);
83await ctx.Response.WriteAsync("Site Name: " + config["IIS_SITE_NAME"]);
103private async Task ASPNETCORE_IIS_PHYSICAL_PATH(HttpContext ctx) => await ctx.Response.WriteAsync(Environment.GetEnvironmentVariable("ASPNETCORE_IIS_PHYSICAL_PATH"));
108await ctx.Response.WriteAsync(string.Join(",", serverAddresses.Addresses));
113await ctx.Response.WriteAsync(ctx.Request.Protocol);
120await ctx.Response.WriteAsync("Hello World");
127await ctx.Response.WriteAsync("Hello World");
135await ctx.Response.WriteAsync(authScheme?.Name ?? "null");
138await ctx.Response.WriteAsync(":" + ctx.User.Identity.Name);
145await context.Response.WriteAsync(clientCert != null ? $"Enabled;{clientCert.GetCertHashString()}" : "Disabled");
172await context.Response.WriteAsync(_waitingRequestCount.ToString(CultureInfo.InvariantCulture));
218await ctx.Response.WriteAsync(Environment.GetEnvironmentVariable(ctx.Request.Query["name"].ToString()));
230await ctx.Response.WriteAsync($"{varName}: {feature[varName] ?? "(null)"}");
235await ctx.Response.WriteAsync("Anonymous?" + !ctx.User.Identity.IsAuthenticated);
242await ctx.Response.WriteAsync(ctx.User.Identity.AuthenticationType);
259await ctx.Response.WriteAsync("NTLM");
269return ctx.Response.WriteAsync($"PathBase: {ctx.Request.PathBase.Value}; Path: {ctx.Request.Path.Value}");
316await ctx.Response.WriteAsync("Success");
322await ctx.Response.WriteAsync(exception.ToString());
324await ctx.Response.WriteAsync("_Failure");
352await ctx.Response.WriteAsync("Success");
358await ctx.Response.WriteAsync(exception.ToString());
360await ctx.Response.WriteAsync("_Failure");
374await ctx.Response.WriteAsync("Success");
380await ctx.Response.WriteAsync(exception.ToString());
382await ctx.Response.WriteAsync("_Failure");
397await ctx.Response.WriteAsync(ctx.Request.Query["body"]);
405await ctx.Response.WriteAsync(ctx.Request.Path.Value);
410await ctx.Response.WriteAsync(ctx.Request.QueryString.Value);
414await ctx.Response.WriteAsync("Hello World");
421await ctx.Response.WriteAsync(new string('a', length));
452await ctx.Response.WriteAsync("Request Complete");
458await ctx.Response.WriteAsync("EmptyHeaderShouldBeSkipped");
470return ctx.Response.WriteAsync($"Failure: '{headerName}' indexer");
474return ctx.Response.WriteAsync($"Failure: '{headerName}' TryGetValue");
498return ctx.Response.WriteAsync($"Failure: Repeated '{headerName}' Add did not throw");
515return ctx.Response.WriteAsync("Success");
522await ctx.Response.WriteAsync("Started_");
529await ctx.Response.WriteAsync("SetStatusCodeAfterWriteThrew_");
531await ctx.Response.WriteAsync("Finished");
536await ctx.Response.WriteAsync("Started_");
543await ctx.Response.WriteAsync("SetHeaderAfterWriteThrew_");
545await ctx.Response.WriteAsync("Finished");
587await ctx.Response.WriteAsync(_requestsInFlight.ToString(CultureInfo.InvariantCulture));
592await ctx.Response.WriteAsync("done");
598await ctx.Response.WriteAsync("test1");
605await ctx.Response.WriteAsync("test2");
615await ctx.Response.WriteAsync("Completed");
622await ctx.Response.WriteAsync("hello world");
635await ctx.Response.WriteAsync(Encoding.UTF8.GetString(readBuffer, 0, result));
648await ctx.Response.WriteAsync(Encoding.UTF8.GetString(readBuffer, 0, result));
675await ctx.Response.WriteAsync(line + Environment.NewLine);
707await ctx.Response.WriteAsync(line + Environment.NewLine);
731await ctx.Response.WriteAsync(value);
741await ctx.Response.WriteAsync(Encoding.UTF8.GetString(readBuffer, 0, result));
743await ctx.Response.WriteAsync(Encoding.UTF8.GetString(readBuffer, 0, result));
760await ctx.Response.WriteAsync("hello world");
778await ctx.Response.WriteAsync(Encoding.UTF8.GetString(buffer));
851await ctx.Response.WriteAsync(success ? "Success" : "Failure");
875await ctx.Response.WriteAsync(count == 0 ? "Success" : "Failure");
938await ctx.Response.WriteAsync(success ? "Success" : "Failure");
952await ctx.Response.WriteAsync("Success");
983await ctx.Response.WriteAsync(AppDomain.CurrentDomain.BaseDirectory);
989return ctx.Response.WriteAsync(ctx.Request.Path.Value);
994await ctx.Response.WriteAsync("Shutting down");
1004await ctx.Response.WriteAsync("Shutting down");
1011await ctx.Response.WriteAsync("Shutting down");
1022await ctx.Response.WriteAsync("Hello World");
1029await ctx.Response.WriteAsync("Hello World");
1043await ctx.Response.WriteAsync(StartupHookCalled.ToString());
1053await ctx.Response.WriteAsync("Response Begin");
1056await ctx.Response.WriteAsync(serverVariableFeature["REMOTE_PORT"]);
1059await ctx.Response.WriteAsync("Response End");
1064await ctx.Response.WriteAsync(string.Join("|", Environment.GetCommandLineArgs().Skip(1)));
1068ctx.Response.WriteAsync("Scheme:" + ctx.Request.Scheme + "; Original:" + ctx.Request.Headers["x-original-proto"]);
1070public Task Path(HttpContext ctx) => ctx.Response.WriteAsync(ctx.Request.Path.Value);
1072public Task Query(HttpContext ctx) => ctx.Response.WriteAsync(ctx.Request.QueryString.Value);
1074public Task BodyLimit(HttpContext ctx) => ctx.Response.WriteAsync(ctx.Features.Get<IHttpMaxRequestBodySizeFeature>()?.MaxRequestBodySize?.ToString(CultureInfo.InvariantCulture) ?? "null");
1076public Task Anonymous(HttpContext context) => context.Response.WriteAsync("Anonymous?" + !context.User.Identity.IsAuthenticated);
1083return context.Response.WriteAsync(context.User.Identity.AuthenticationType);
1097return context.Response.WriteAsync("NTLM");
1106context.Response.WriteAsync(context.Features.Get<IHttpUpgradeFeature>() != null ? "Enabled" : "Disabled");
1120return context.Response.WriteAsync("Hello World");
1123return context.Response.WriteAsync(context.Request.Headers["ANCMRHPath"]);
1128await context.Response.WriteAsync(Environment.ProcessId.ToString(CultureInfo.InvariantCulture));
1135await context.Response.WriteAsync(httpsPort.HasValue ? httpsPort.Value.ToString(CultureInfo.InvariantCulture) : "NOVALUE");
1142await context.Response.WriteAsync(httpsPort.HasValue ? httpsPort.Value.ToString(CultureInfo.InvariantCulture) : "NOVALUE");
1173await ctx.Response.WriteAsync(exception.ToString());
1194await ctx.Response.WriteAsync(exception.ToString());
Interop.FunctionalTests (30)
JwtSample (1)
Kestrel.SampleApp (1)
LocalizationSample (48)
Startup.cs (48)
47await context.Response.WriteAsync(
72await context.Response.WriteAsync($"<h1>{SR["Request Localization Sample"]}</h1>");
73await context.Response.WriteAsync($"<h1>{SR["Hello"]}</h1>");
74await context.Response.WriteAsync("<form id=\"theForm\" method=\"get\">");
75await context.Response.WriteAsync($"<label for=\"culture\">{SR["Culture"]}: </label>");
76await context.Response.WriteAsync("<select id=\"culture\" name=\"culture\">");
78await context.Response.WriteAsync("</select><br />");
79await context.Response.WriteAsync($"<label for=\"uiCulture\">{SR["UI Culture"]}: </label>");
80await context.Response.WriteAsync("<select id=\"uiCulture\" name=\"ui-culture\">");
82await context.Response.WriteAsync("</select><br />");
83await context.Response.WriteAsync("<input type=\"submit\" value=\"go QS\" /> ");
84await context.Response.WriteAsync($"<input type=\"button\" value=\"go cookie\" onclick='useCookie();' /> ");
85await context.Response.WriteAsync($"<a href=\"/\" onclick='clearCookie();'>{SR["reset"]}</a>");
86await context.Response.WriteAsync("</form>");
87await context.Response.WriteAsync("<br />");
88await context.Response.WriteAsync("<table><tbody>");
89await context.Response.WriteAsync($"<tr><th>Winning provider:</th><td>{requestCultureFeature.Provider.GetType().Name}</td></tr>");
90await context.Response.WriteAsync($"<tr><th>{SR["Current request culture:"]}</th><td>{requestCulture.Culture.DisplayName} ({requestCulture.Culture})</td></tr>");
91await context.Response.WriteAsync($"<tr><th>{SR["Current request UI culture:"]}</th><td>{requestCulture.UICulture.DisplayName} ({requestCulture.UICulture})</td></tr>");
92await context.Response.WriteAsync($"<tr><th>{SR["Current thread culture:"]}</th><td>{CultureInfo.CurrentCulture.DisplayName} ({CultureInfo.CurrentCulture})</td></tr>");
93await context.Response.WriteAsync($"<tr><th>{SR["Current thread UI culture:"]}</th><td>{CultureInfo.CurrentUICulture.DisplayName} ({CultureInfo.CurrentUICulture})</td></tr>");
94await context.Response.WriteAsync($"<tr><th>{SR["Current date (invariant full):"]}</th><td>{DateTime.Now.ToString("F", CultureInfo.InvariantCulture)}</td></tr>");
95await context.Response.WriteAsync($"<tr><th>{SR["Current date (invariant):"]}</th><td>{DateTime.Now.ToString(CultureInfo.InvariantCulture)}</td></tr>");
96await context.Response.WriteAsync($"<tr><th>{SR["Current date (request full):"]}</th><td>{DateTime.Now.ToString("F", CultureInfo.CurrentCulture)}</td></tr>");
97await context.Response.WriteAsync($"<tr><th>{SR["Current date (request):"]}</th><td>{DateTime.Now.ToString(CultureInfo.CurrentCulture)}</td></tr>");
98await context.Response.WriteAsync($"<tr><th>{SR["Current time (invariant):"]}</th><td>{DateTime.Now.ToString("T", CultureInfo.InvariantCulture)}</td></tr>");
99await context.Response.WriteAsync($"<tr><th>{SR["Current time (request):"]}</th><td>{DateTime.Now.ToString("T", CultureInfo.CurrentCulture)}</td></tr>");
100await context.Response.WriteAsync($"<tr><th>{SR["Big number (invariant):"]}</th><td>{(Math.Pow(2, 42) + 0.42).ToString("N", CultureInfo.InvariantCulture)}</td></tr>");
101await context.Response.WriteAsync($"<tr><th>{SR["Big number (request):"]}</th><td>{(Math.Pow(2, 42) + 0.42).ToString("N", CultureInfo.CurrentCulture)}</td></tr>");
102await context.Response.WriteAsync($"<tr><th>{SR["Big number negative (invariant):"]}</th><td>{(-Math.Pow(2, 42) + 0.42).ToString("N", CultureInfo.InvariantCulture)}</td></tr>");
103await context.Response.WriteAsync($"<tr><th>{SR["Big number negative (request):"]}</th><td>{(-Math.Pow(2, 42) + 0.42).ToString("N", CultureInfo.CurrentCulture)}</td></tr>");
104await context.Response.WriteAsync($"<tr><th>{SR["Money (invariant):"]}</th><td>{2199.50.ToString("C", CultureInfo.InvariantCulture)}</td></tr>");
105await context.Response.WriteAsync($"<tr><th>{SR["Money (request):"]}</th><td>{2199.50.ToString("C", CultureInfo.CurrentCulture)}</td></tr>");
106await context.Response.WriteAsync($"<tr><th>{SR["Money negative (invariant):"]}</th><td>{(-2199.50).ToString("C", CultureInfo.InvariantCulture)}</td></tr>");
107await context.Response.WriteAsync($"<tr><th>{SR["Money negative (request):"]}</th><td>{(-2199.50).ToString("C", CultureInfo.CurrentCulture)}</td></tr>");
108await context.Response.WriteAsync("</tbody></table>");
109await context.Response.WriteAsync(
117await context.Response.WriteAsync($" <option value=\"\">-- select --</option>");
118await context.Response.WriteAsync($" <option value=\"{new CultureInfo("en-US").Name}\">{new CultureInfo("en-US").DisplayName}</option>");
119await context.Response.WriteAsync($" <option value=\"{new CultureInfo("en-AU").Name}\">{new CultureInfo("en-AU").DisplayName}</option>");
120await context.Response.WriteAsync($" <option value=\"{new CultureInfo("en-GB").Name}\">{new CultureInfo("en-GB").DisplayName}</option>");
121await context.Response.WriteAsync($" <option value=\"{new CultureInfo("fr-FR").Name}\">{new CultureInfo("fr-FR").DisplayName}</option>");
122await context.Response.WriteAsync($" <option value=\"{new CultureInfo("es-ES").Name}\">{new CultureInfo("es-ES").DisplayName}</option>");
123await context.Response.WriteAsync($" <option value=\"{new CultureInfo("ja-JP").Name}\">{new CultureInfo("ja-JP").DisplayName}</option>");
124await context.Response.WriteAsync($" <option value=\"{new CultureInfo("zh").Name}\">{new CultureInfo("zh").DisplayName}</option>");
125await context.Response.WriteAsync($" <option value=\"{new CultureInfo("zh-CN").Name}\">{new CultureInfo("zh-CN").DisplayName}</option>");
126await context.Response.WriteAsync($" <option value=\"en-NOTREAL\">English (Not a real locale)</option>");
127await context.Response.WriteAsync($" <option value=\"pp-NOTREAL\">Made-up (Not a real anything)</option>");
LocalizationWebsite (27)
Logging.W3C.Sample (1)
Microsoft.AspNetCore.Authentication.Negotiate.Test (5)
Microsoft.AspNetCore.Authentication.Test (34)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.WebAssembly.Server (9)
Microsoft.AspNetCore.CookiePolicy.Test (5)
Microsoft.AspNetCore.Cors.Test (9)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Microsoft.AspNetCore.Diagnostics.Tests (28)
Microsoft.AspNetCore.FunctionalTests (1)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.Hosting.TestSites (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (6)
Microsoft.AspNetCore.Http.Connections (8)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Extensions (6)
Microsoft.AspNetCore.Http.Extensions.Tests (3)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.HttpLogging.Tests (12)
Microsoft.AspNetCore.HttpsPolicy.Tests (18)
Microsoft.AspNetCore.Localization.Routing.Tests (3)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OutputCaching.Tests (11)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.ResponseCompression.Tests (14)
ResponseCompressionMiddlewareTest.cs (14)
167return context.Response.WriteAsync(new string('a', 100));
462return context.Response.WriteAsync(new string('a', 100));
525return context.Response.WriteAsync(new string('a', 100));
588return context.Response.WriteAsync(new string('a', 100));
642await context.Response.WriteAsync(new string('a', 100));
688await context.Response.WriteAsync(new string('a', 100));
790await context.Response.WriteAsync(new string('a', 10));
793await context.Response.WriteAsync(new string('a', 90));
924await context.Response.WriteAsync("a");
988await context.Response.WriteAsync("a");
1151await context.Response.WriteAsync(new string('a', 100));
1199await context.Response.WriteAsync(new string('a', 10));
1202await context.Response.WriteAsync(new string('a', 90));
1268return context.Response.WriteAsync(new string('a', uncompressedBodyLength));
Microsoft.AspNetCore.Rewrite.Tests (49)
MiddlewareTests.cs (20)
28app.Run(context => context.Response.WriteAsync(
58app.Run(context => context.Response.WriteAsync(
90app.Run(context => context.Response.WriteAsync(
122app.Run(context => context.Response.WriteAsync(
659endpoints.MapGet("/foos", context => context.Response.WriteAsync("bad"));
660endpoints.MapGet("/foo", context => context.Response.WriteAsync($"{context.GetEndpoint()?.DisplayName} from {context.Request.Path}"));
686app.Run(context => context.Response.WriteAsync(
713app.Run(context => context.Response.WriteAsync(
857endpoints.MapGet("/foo", context => context.Response.WriteAsync(
860endpoints.MapGet("/g", context => context.Response.WriteAsync(
895endpoints.MapGet("/foo", context => context.Response.WriteAsync(
898endpoints.MapGet("/g", context => context.Response.WriteAsync(
931endpoints.MapGet("/foo", context => context.Response.WriteAsync(
934endpoints.MapGet("/g", context => context.Response.WriteAsync(
968endpoints.MapGet("/foo", context => context.Response.WriteAsync(
971endpoints.MapGet("/g/h", context => context.Response.WriteAsync(
1005endpoints.MapGet("/foo", context => context.Response.WriteAsync(
1008endpoints.MapGet("/g", context => context.Response.WriteAsync(
1038app.MapGet("/foo", context => context.Response.WriteAsync(
1041app.MapGet("/g", context => context.Response.WriteAsync(
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Routing.FunctionalTests (5)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (51)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
Microsoft.AspNetCore.Session.Tests (5)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
Microsoft.AspNetCore.StaticFiles.Tests (7)
Microsoft.AspNetCore.TestHost.Tests (50)
Microsoft.AspNetCore.Tests (8)
Microsoft.AspNetCore.WebSockets.Tests (1)
MiddlewareAnalysisSample (6)
Mvc.RoutingWebSite (6)
NativeIISSample (44)
NegotiateAuthSample (1)
OpenIdConnectSample (37)
OutputCachingSample (3)
QueueSharing (1)
RazorPagesWebSite (1)
RequestDecompressionSample (1)
ResponseCachingSample (1)
ResponseCompressionSample (2)
RewriteSample (1)
RoutingSandbox (9)
RoutingWebSite (14)
SampleStartups (6)
SelfHostServer (1)
ServerComparison.TestSites (14)
SessionSample (7)
SignalR.Client.FunctionalTestApp (3)
SocialSample (48)
Sockets.BindTests (3)
Sockets.FunctionalTests (15)
StartRequestDelegateUrlApp (1)
StartRouteBuilderUrlApp (1)
StartWithIApplicationBuilderUrlApp (1)
StatusCodePagesSample (2)
SystemdTestApp (1)
Wasm.Performance.Driver (1)
WebTransportInteractiveSampleApp (1)
WsFedSample (21)