aspnetcore/test/Microsoft.Net.Http.Headers....
Doug Bunting 80813f7c1e Use pooled `StringBuilder` to reduce allocations when adding response cookies
- #561
- new `SetCookieHeaderValue.AppendToStringBuilder()` method; avoids per-call `StringBuilder` allocation
- `ResponseCookies` uses `ObjectPool<StringBuilder>` that `ResponseCookiesFeature` provides
 - `ResponseCookies` works fine if no `ObjectPoolProvider` is available
- `IHttpContextFactory` instance is a singleton instantiated from CI
 - make `HttpContextFactory` `ObjectPoolProvider` and `ResponseCookiesFeature`-aware
 - apply same pattern to sample `PooledHttpContextFactory`
- pool is not currently configurable; defaults are fine for response cookies
 - if we need (policy) configuration, would add an `IOptions<HttpContextFactorySettings>`

nit: Add some doc comments
2016-03-25 09:38:52 -07:00
..
CacheControlHeaderValueTest.cs
ContentDispositionHeaderValueTest.cs
ContentRangeHeaderValueTest.cs
CookieHeaderValueTest.cs #515 Make forgiving vs strict header list parsers. 2016-02-08 10:21:28 -08:00
DateParserTest.cs
EntityTagHeaderValueTest.cs #515 Make forgiving vs strict header list parsers. 2016-02-08 10:21:28 -08:00
MediaTypeHeaderValueComparerTests.cs
MediaTypeHeaderValueTest.cs #515 Make forgiving vs strict header list parsers. 2016-02-08 10:21:28 -08:00
Microsoft.Net.Http.Headers.Tests.xproj Remove project name from output path 2016-03-02 18:51:48 -08:00
NameValueHeaderValueTest.cs #515 Make forgiving vs strict header list parsers. 2016-02-08 10:21:28 -08:00
RangeConditionHeaderValueTest.cs
RangeHeaderValueTest.cs
RangeItemHeaderValueTest.cs
SetCookieHeaderValueTest.cs Use pooled `StringBuilder` to reduce allocations when adding response cookies 2016-03-25 09:38:52 -07:00
StringWithQualityHeaderValueComparerTest.cs
StringWithQualityHeaderValueTest.cs #515 Make forgiving vs strict header list parsers. 2016-02-08 10:21:28 -08:00
project.json Fixed build 2016-03-25 01:54:05 -07:00