Closed
Description
- DeleteCookie calls AppendCookie which is designed for larger chunked cookies. However, when deleting each of the values is an empty string. It could do something much more targeted.
DeleteCookie
also could the delegate allocation usingEnumerable.Where
and use a bespoke iterator similar toResponseCookies.Delete
:AppendResponseCookie
invokesResponseCookies.Append
which allocates aResponseCookieValues
instance and an intermediaryStringValues
for the header. Since we know we're running inside a loop, it could be better optimized for fewer allocations