Commit Graph

53 Commits

Author SHA1 Message Date
Derek Gray d89f66f150 Use a CopyOnWriteDictionary in ApplicationBuilder so branches can set their own properties
Fix #783
2017-03-21 14:31:26 -05:00
Nate McMaster 73d58b7a13 Unify dependency versions to one file 2017-03-15 13:54:28 -07:00
John Luo 15adff9433 Only format non-negative int64 #760 2017-02-28 14:47:08 -08:00
Nate McMaster b9bba9cbb1
Downgrade to stable packages 2017-02-14 16:15:30 -08:00
David Fowler 945b4e63de Added support for middleware activation via IMiddlewareFactory (#773)
* Added support for middleware activation via IMiddlewareFactory
- IMiddlewareFactory and IMiddleware are new extensiblity points for
activating and authoring middleware. Under the covers, middleware is still
very much just a function. This just provides a nice way to get a per request
activated middleware instance that is created and released via the IMiddlewareFactory.
The caveats are that middleware needs to be registered in the container (by default)
and that not possible to explicitly pass arguments directly via UseMiddleware.
- Added tests
2017-02-13 18:53:10 -08:00
Chris R 96f33b27d4 Migrate from xproj to csproj 2017-02-03 15:37:51 -08:00
Chris R 779115b1ad #407 Add ContentLength to IHeaderDictionary 2017-01-24 15:14:46 -08:00
Chris R 622d112372 #723 Make HttpContextAccessor static AsyncLocal 2017-01-09 14:49:35 -08:00
Ben Adams 3b25acd4ad ContentType.IsNullOrEmpty 2017-01-09 13:38:18 -08:00
Pranav K 991fbb08bc Updating to 4.4 CoreFx packages 2016-12-14 14:47:29 -08:00
John Luo d50a24145d Add functionalities to HeaderUtilities
- Add allocation free parsing of int32, int64
- Improve performance of converting int64 to string
- Add parsing of seconds from header values
- Add check for existence of cache directives
- Expose CacheControlHeaderValue constants
2016-12-08 17:43:25 -08:00
Pranav K 4fbb0b01fc Updating versions to 1.2.0-* 2016-11-09 14:17:55 -08:00
jacalvar db677639c3 Created public API baselines 2016-11-04 16:31:24 -07:00
Ben Adams 4569653504 Don't allocate for ResponseCookiesFeature 2016-10-07 10:01:42 -07:00
Pranav K 874dcebbcb Updating partner package versions 2016-09-28 11:50:48 -07:00
Ben Adams 067eb9c6f8 Make FeatureReferences<T>.Fetch inlineable (#704) 2016-09-28 11:35:04 -07:00
Pavel Krymets 18f08fdb2f Use TaskCache class from Microsoft.Extensions.TaskCache.Sources (#705)
Instead of Task.FromResult(0)
2016-09-07 10:40:13 -07:00
BrennanConroy 9a0ea424ea Fix cross appdomain exception 2016-07-25 09:48:10 -07:00
Victor Hurdugaci e64b8e55e5 Add some multipart reader utilities to make reading streams easier 2016-07-14 09:25:46 -07:00
Doug Bunting 748e96f513 One build to rule them all
- well, at least VS and command-line builds will share output
- part of aspnet/Coherence-Signed#277
2016-07-07 12:01:29 -07:00
John Luo 4986137ffe Use filename* for files in multipart forms when available #651 2016-06-29 12:31:52 -07:00
Pranav K 20d608170e Updating to dev versions 2016-06-16 10:17:59 -07:00
Pavel Krymets 8b3c308c22 Limit value number instead of key number in form reader 2016-06-01 15:46:40 -07:00
Cesar Blum Silveira 8212694874 Add RawTarget property to IHttpRequestFeature (#596). 2016-05-27 16:54:07 -07:00
Hao Kung 36329b07c8 Add Description as well to AuthenticateInfo
(needed by Identity)
2016-05-17 15:01:44 -07:00
Pranav K a4bd3bc895 Merge branch 'release' into dev 2016-05-02 14:56:19 -07:00
Chris R 5767306875 #547 Remove '+' replacement from request cookies. 2016-05-02 14:44:26 -07:00
Pranav K edff60f293 Fix build warnings 2016-05-02 11:27:17 -07:00
Chris R 7ebd87a6b2 Add doc comments for FormOptions. 2016-04-29 10:24:26 -07:00
Hao Kung 3a7f6a7228 Add GetAuthenticateInfo method 2016-04-26 14:09:48 -07:00
Chris R 13f73c6101 Make the form body limits configurable. 2016-04-25 11:59:40 -07:00
Pranav K b50cd32b8e Removing imports from src projects 2016-04-08 06:48:41 -07:00
Chris R 3a97a6bdfd #602 Invoke APM callbacks on the threadpool. 2016-03-31 12:35:20 -07:00
Doug Bunting 6725d68559 Move some implementations (all feature implementations) out of `.Internal` namespaces
- #549, #592
- move feature implementations to `Microsoft.AspNetCore.Http.Features` and `...Authentication.Features`
- move `DefaultHttpContext`, `HttpContextAccessor`, `HttpContextFactory`, `FormCollection` and
  `HeaderDictionary` to `Microsoft.AspNetCore.Http`
- move `FormFile` to `Microsoft.AspNetCore.Http.Internal`
 - that and `Microsoft.AspNetCore.Http.Authentication.Internal` are the remaining `.Internal` namespaces

nits:
- remove a couple of parameterless constructors
- add / fill subfolders to align with new namespaces
- remove all use of (unnecessary) "T:..." `<see cref=""/>` values
2016-03-30 16:01:37 -07:00
Chris R bd60507dcd #553 Use System.Buffers for temporary arrays 2016-03-28 13:57:08 -07:00
Eilon Lipton 78a3fc91d3 Fix package metadata 2016-03-26 22:42:17 -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
Doug Bunting 6f24508a33 Move remaining feature interfaces into `Microsoft.AspNetCore.Http.Features` package and namespace
- #590, also related to #561
- move feature interfaces from `Microsoft.AspNetCore.Http` package
- move required classes from `Microsoft.AspNetCore.Http.Abstractions` package
- move `ISession` and `WebSocketAcceptContext` to `Microsoft.AspNetCore.Http` namespace (#590)

nit: remove transient dependencies listed in `Microsoft.AspNetCore.Http.Abstractions`'s `project.json`
2016-03-21 09:05:09 -07:00
Chris R ce408a999e #578 Do not buffer the request body by default when reading forms. 2016-03-17 15:21:10 -07:00
Ajay Bhargav Baaskaran dd7198f410 Added Company, Copyright and Product attributes to AssemblyInfo 2016-03-03 17:32:08 -08:00
Doug Bunting 3105fd1075 Remove project name from output path
- aspnet/Coherence-Signed#187
- remove `<RootNamespace>` settings but maintain other unique aspects e.g. `<DnxInvisibleContent ... />`
- in a few cases, standardize on VS version `14.0` and not something more specific
2016-03-02 18:51:48 -08:00
N. Taylor Mullen 9f499d7962 Transition to netstandard.
- dotnet5.X => netstandard1.y (where y = x-1).
- DNXCore50 => netstandardapp1.5.
- Applied the same changes to ifdefs.
2016-03-01 13:31:53 -08:00
N. Taylor Mullen dabe2e0c24 Revert "Downgrade to use CoreFX NET46 compatible packages"
This reverts commit dc456ceab5.
2016-02-19 20:33:13 -08:00
Mukul Sabharwal dc456ceab5 Downgrade to use CoreFX NET46 compatible packages 2016-02-19 16:44:01 -08:00
Ajay Bhargav Baaskaran 3e8368ad66 Enabled xml doc generation 2016-02-18 16:32:10 -08:00
Chris R d4e72564c7 Add AuthenticationManager.HttpContext. Clean up contructors. 2016-02-18 16:03:20 -08:00
Chris R 5e7b30c04b #542 Add IHttpConnectionFeature.ConnectionId 2016-02-18 11:08:05 -08:00
Kristian Hellang cb09ffccce Changed SaveAs[Async](string) to CopyTo[Async](Stream) 2016-02-11 12:11:42 -08:00
John Luo 8aa7a0993d Relocating dependencies 2016-02-01 18:26:36 -08:00
John Luo 93079ea3a6 Updating to new CLI 2016-02-01 16:37:16 -08:00