-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
Perfaffected-very-fewThis issue impacts very few customersThis issue impacts very few customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsseverity-nice-to-haveThis label is used by an internal toolThis label is used by an internal tooltask
Milestone
Description
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace WebApplication254
{
public class Startup
{
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.Run(context =>
{
var cookie = context.Request.Cookies[".AspNetCore.Cookies"];
return context.Response.WriteAsync($"Hello World {cookie}");
});
}
}
}
Most of these allocations look unnecessary. In the end, we need a collection that has cookies split into name value pairs.
Metadata
Metadata
Assignees
Labels
Perfaffected-very-fewThis issue impacts very few customersThis issue impacts very few customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsseverity-nice-to-haveThis label is used by an internal toolThis label is used by an internal tooltask