Commit Graph

10 Commits

Author SHA1 Message Date
John Luo e8123db21e Add SameSite attribute to SetCookie header 2017-05-22 14:42:05 -07:00
John Luo 15adff9433 Only format non-negative int64 #760 2017-02-28 14:47:08 -08:00
Ben Adams 4569653504 Don't allocate for ResponseCookiesFeature 2016-10-07 10:01:42 -07:00
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
Chris R 3e6c7171be #515 Make forgiving vs strict header list parsers. 2016-02-08 10:21:28 -08:00
Pranav K 58974a9def Replacing NotNullAttribute with thrown exceptions 2015-09-18 15:11:27 -07:00
Hisham Abdullah Bin Ateya eb423e57d6 Using 'nameof' operator instead of magic strings
Fix back-end field issue

Fix back-end field issue
2015-06-25 12:17:17 -07:00
N. Taylor Mullen 8703e2d7f2 Update LICENSE.txt and license header on files. 2015-05-01 13:52:04 -07:00
Praburaj b77e9d2d9c Using [NotNull] attribute from the Common repo package 2015-03-13 17:44:51 -07:00
Chris Ross 4fb21644fc Implement strongly typed headers. 2015-01-14 15:41:09 -08:00