James Newton-King
066c5ce337
Implicitly execute matched endpoint at the end of middleware pipeline ( #1059 )
2018-11-07 12:57:31 +13:00
James Newton-King
d77b370fb1
Add Endpoint extension methods to HttpContext ( #1060 )
2018-11-07 12:24:15 +13:00
Filip W
187e89f6f0
Do not throw a null reference from request.GetDisplayUrl() ( #1057 )
2018-10-30 12:32:26 -07:00
Ryan Nowak
d17d9155c7
Port aspnet/Routing/pull/858
2018-10-17 14:26:30 -07:00
MK
39c25357c6
Skip extensions in SetCookie parser #1049 ( #1050 )
2018-10-17 09:48:23 -07:00
James Newton-King
5f75c07bbf
Add RoutesValues to HttpRequest ( #1042 )
2018-10-02 16:03:58 +13:00
Chris Ross (ASP.NET)
8e4f7365ad
Merge branch 'release/2.2'
2018-09-17 15:06:31 -07:00
Ryan Nowak
41c4a47680
Minor perf updates for RVD
...
Porting changes from perf work in
https://github.com/aspnet/Routing/pull/788
Includes porting/adding the RVD benchmarks, as well as a new TryAdd
method.
2018-09-13 13:45:08 -07:00
Pranav K
d0ddb068be
Return FormCollection.Empty when Content-Length is 0 ( #1038 )
...
* Return FormCollection.Empty when Content-Length is 0
Fixes https://github.com/aspnet/Mvc/issues/5631
2018-09-13 13:35:31 -07:00
Simon Cropp
cfb0d732b0
fix some spelling ( #1035 )
2018-09-06 08:46:34 -07:00
James Newton-King
05a581a132
Copy core endpoint routing types to HttpAbstractions ( #1030 )
2018-08-29 17:07:16 +12:00
Justin Kotalik
80b6ae4eb4
Handle subtype with suffix being a subtype without a suffix ( #1027 )
2018-07-30 12:05:35 -07:00
David Fowler
0f4f1950f1
Attempt to make it easier to detect when the request is done ( #1021 )
...
- Today the async local reference to the HttpContext flows when the execution context is captured. When the http request has ended, the HttpContext property will return the reference to an invalid HttpContext instead of returning null. This change stores both the request id and the HttpContext and makes sure both match before returning anything valid.
- This is still racy but should catch more cases of people doing bad things.
- There will still be issue if people store the context in a local and use that reference instead of accessing it through the property getter but we can live with that.
- Set the TraceIdentifier to null in the default HttpContextFactory
- Added tests
2018-06-26 11:49:12 -07:00
Ryan Brandenburg
1ad03de00c
Upgrade to netcoreapp22
2018-05-08 10:50:50 -07:00
Patrick Westerhoff
72210e4078
Add AuthenticationProperties.Parameters ( #1008 )
...
Add a `Parameters` bag to the authentication properties that allow
passing arbitrary parameters to an authentication handler. These values
are not intended for serialization of persistence, only for flowing data
between call sites.
Also make existing `Items` collection helpers protected to allow them to
be reused in subclasses, make string-based helpers public as a public
way to work with the collection, and add helper methods to interact with
the `Parameters` dictionary.
2018-03-23 09:13:02 -07:00
Chris Ross (ASP.NET)
d20d47924c
Add HostString.MatchesAny #2863
2018-02-13 14:40:14 -08:00
Robert Miles
672a5f3c76
Allow null value in query string KVP per RFC 3986 ( #994 )
...
* Allow null value in query string KVP per RFC 3986
* Tweaks per PR suggestions
* Tweaks per PR suggestions, round 2
* Tweaks per PR suggestions, round 3
2018-02-05 20:25:53 -08:00
Kristian Hellang
450900d14c
Added protected ctor to AuthenticationSchemeProvider ( #990 )
2018-02-05 13:43:55 -08:00
Hossam Barakat
9119433ab7
Add the middleware name to the exception message UseMiddlewareNoInvokeMethod ( #993 )
...
Addresses #927
Addresses aspnet/Home#2692
2018-02-01 06:22:08 -08:00
David Fowler
6cd313fcfa
Revert "Change MiddlewareFactory to type activate IMiddleware as a fallback ( #988 )" ( #991 )
...
This reverts commit 44d5bf074f .
2018-01-30 10:28:52 -08:00
Ryan Brandenburg
2326783a04
Have definitive values for TheoryData
2018-01-25 14:44:47 -08:00
David Fowler
44d5bf074f
Change MiddlewareFactory to type activate IMiddleware as a fallback ( #988 )
...
- This eases the transition and learning when you discover there's
an interface for middleware.
2018-01-25 13:51:54 -08:00
Justin Kotalik
150bb3faf4
Add BindingAddress to HttpAbstractions ( #977 )
2017-12-18 18:40:11 -08:00
Chris Ross
476333771c
#955 Print available scheme names in exception message for invalid scheme ( #961 )
2017-11-16 09:17:57 -08:00
Pranav K
231f3a44b1
Update samples and tests to target netcoreapp2.1
2017-11-13 15:13:10 -08:00
Chris Ross
3e3772eecd
Implement read-only HeaderDictionary ( #958 )
2017-11-06 20:03:49 -08:00
Nate McMaster
c0f937239a
Pin tool and package versions to make builds more repeatable
...
Part of aspnet/Universe#575
2017-11-01 09:32:44 -07:00
Nate McMaster
8dc80c54ad
Minor test code changes to resolve xUnit2013 build error
2017-10-05 17:13:26 -07:00
Henk Mollema
d6a3c3f83e
Add helper to register IHttpContextAccessor ( #947 )
2017-10-02 08:31:12 -07:00
Justin Kotalik
1e8a22dae3
NameValueHeaderValue Escaping/Unescaping quoted-strings and helpers ( #913 )
2017-08-30 14:03:12 -07:00
Nate McMaster
e5825641ce
Use PackageLineup to manage PackageReference versions
2017-08-29 12:43:13 -07:00
Nate McMaster
9c699f74b0
Use Directory.Build.props/targets
2017-08-29 12:41:50 -07:00
Justin Kotalik
e97e6546c2
Add structured syntax suffixes and facets to MediaTypeHeaderValue ( #921 )
2017-08-29 10:20:56 -07:00
Kiran Challa
ce68ec23c0
Using WebEncoders' Base64Url encode/decode functionality
2017-08-24 14:00:49 -07:00
Justin Kotalik
6657f4cf36
Adds MaxAge property to CookieOptions/Builder ( #904 )
2017-08-22 16:57:04 -07:00
Nate McMaster
5b58a6a71d
Upgrade to xunit 2.3.0-beta4
2017-08-22 16:29:13 -07:00
Justin Kotalik
27b0f60f09
ForbidAsync now uses correct Schemes method ( #918 )
...
* ForbidAsync now uses correct Schemes method
* comment
* adds tests
2017-08-19 22:09:22 -07:00
Justin Kotalik
594f55947f
Keep ResponseCookie options on delete. ( #905 )
2017-08-10 18:01:30 -07:00
Justin Kotalik
5ec8a7134e
Adds FormFeature quoted boundary test
2017-08-08 21:09:39 -07:00
Justin Kotalik
057fc816fa
Refactor to HttpRequest/Response Streams
2017-07-27 15:46:13 -07:00
Justin Kotalik
a8270a4901
Removes quotes from names in ContentDispositionHeaderValue
2017-07-27 12:30:04 -07:00
Justin Kotalik
b41d8656d5
Adds new date string in HttpRuleParser
2017-07-18 13:34:32 -07:00
Justin Kotalik
ab0185a0b8
Adds null checks to UriHelper and fixes typo
2017-07-17 12:23:01 -07:00
Cesar Blum Silveira
8d4e04cfb4
Fix duplicate test warnings.
2017-07-10 16:43:44 -07:00
Hao Kung
d894584254
Add DefaultScheme, remove single fallback ( #891 )
2017-07-07 10:47:54 -07:00
Chris R
85402d4bd6
Add CancellationToken to ISession Load/CommitAsync
2017-07-05 09:05:01 -07:00
Hao Kung
271faf11bb
Refactor IAuthenticationHandler/Result
2017-06-29 16:25:24 -07:00
Nate McMaster
f9e0439ef1
Add CookieBuilder
2017-06-29 15:55:01 -07:00
David Fowler
9bf94d3667
Remove unused parameter in ctor of HttpContextFactory ( #881 )
...
- We removed the use of the ObjectPoolProvider in 1.x, this change
just removes it from the ctor.
2017-06-29 11:44:46 -07:00
Nate McMaster
64c6e11ce4
Change HttpResponseStreamWriter.DefaultBufferSize to 16K and remove it from public API surface
2017-06-27 17:31:54 -07:00