John Luo
67aa2546a8
Removing ApplicationServices from HttpContext #466
2015-11-19 09:34:38 -08:00
Pavel Krymets
681533e06c
Set IHttpContextAccessor only if DI provides it
2015-11-18 09:15:27 -08:00
John Luo
fbec068f5c
Adding option to configure services when exposing the ASP.NET 5 pipeline via OWIN #398
2015-11-17 11:02:04 -08:00
Pavel Krymets
690e5a66e5
Set default path=/ when removing cookie
2015-11-16 15:58:18 -08:00
John Luo
d4d04d2c96
Adding exception message for paths not starting with / #251
2015-11-16 10:21:02 -08:00
Ryan Nowak
88c356f645
Add HtmlContentBuilder and HtmlTextWriter
...
Remove BufferedHtmlContent
2015-11-16 08:41:03 -08:00
N. Taylor Mullen
bb8141710d
Remove System beta tag in project.json for coreclr packages.
2015-11-12 12:23:07 -08:00
Nick Craver
6874b87f13
C#6 Cleanup & Optimizations
...
The main intent is cleanup using C# 6 operators and normalization of
type aliases. While there are no intended functional changes here, it
does eliminate a few tight race conditions as a bonus (not a real-win
since this isn't thread-safe all over, simply noting).
2015-11-10 09:38:49 -08:00
Ryan Nowak
308dd109a0
Reduce allocations on Conneg hotpath
2015-11-09 09:16:30 -08:00
Chris R
f050e09283
Revert use of explicit converters that prevent APIs from returning null.
2015-11-04 16:03:36 -08:00
Ben Adams
3c2e2b9d98
#426 Less alloc/wrapping/boxing for Query, Forms, Cookies
2015-11-02 14:47:46 -08:00
Cesar Blum Silveira
af0d2e5888
Merge branch 'release' into dev
2015-11-02 13:38:08 -08:00
Doug Bunting
037196d5c7
Restore `null` and `string.Empty` handling from `EncoderExtensions`
...
- prior test encoders were never invoked for `null` or empty `string`s e.g.
``` c#
public static void HtmlEncode(this IHtmlEncoder htmlEncoder, string value, TextWriter output)
{
...
if (!String.IsNullOrEmpty(value))
{
htmlEncoder.HtmlEncode(value, 0, value.Length, output);
}
}
```
- add missing `null` checks and handle `string.Empty` in `TextWriter output, string value, ...` overloads
- better match for the underlying `TextEncoder` behaviour
- `EncoderExtensions` provided an API like `TextEncoder.Encode(TextWriter output, string value)`
- that method calls `Encode(TextWriter output, string value, int startIndex, int characterCount)`
2015-11-02 09:40:42 -08:00
Cesar Blum Silveira
e934f5e4ed
Strong name everything.
2015-10-30 15:36:55 -07:00
Chris R
be4fb46281
#391 Migrate to System.Text.Encoding.Web
2015-10-30 10:13:02 -07:00
John Luo
018f3d1815
Renaming HttpContextFactory Create method
2015-10-23 21:58:22 -07:00
John Luo
f931cb7c6d
Moving httpcontextfactory to AspNet.Http.Abstractions
2015-10-23 21:49:52 -07:00
Doug Bunting
bcb56bdd1a
Rename `AppendEncoded()` to `AppendHtml()` and `SetContentEncoded()` to `SetHtmlContent()`
...
- aspnet/Mvc#3225 , 1 of 3
Also correct parameter names and doc comments
- add `xml-docs-test` to ensure this doc comments remain valid in the future
2015-10-22 16:41:17 -07:00
Doug Bunting
9d7300c52b
Revert "Rename `AppendEncoded()` to `AppendHtml()`"
...
This reverts commit 14c96f695a .
2015-10-21 15:45:55 -07:00
Doug Bunting
14c96f695a
Rename `AppendEncoded()` to `AppendHtml()`
...
- aspnet/Mvc#3225 , 1 of 3
2015-10-21 15:43:42 -07:00
Cesar Blum Silveira
f00c7c6d06
Fix CoreCLR test pass on Linux ( fixes #442 ).
2015-10-19 14:27:01 -07:00
Ben Adams
e01a05d214
Move RequestIdentifierFeature to HttpContext
...
Rebased #435
Allow lazier instantiation
Expose TraceIdentifier on Httpcontext
Also resolves #412
Add tests
2015-10-15 22:00:45 +01:00
Hao Kung
d28c6e1dbb
Changes for error handling in Authentication
2015-10-14 14:44:50 -07:00
Doug Bunting
0581bcf008
Update `MediaTypeHeaderValue.IsSubsetOf()` to perform consistent checks
...
- aspnet/Mvc#3138 part 1/2
- check parameters with same polarity as type and subtype
- ignore quality factors
- bug was obscured because MVC has no formatters supporting wildcard media types
nits:
- add doc comments
- spelling
- correct typo in a `project.json` file
2015-10-14 12:07:07 -07:00
Chris R
3741d38691
#426 Move IHeaderDictionary to Features to reduce wrapping.
2015-10-08 08:36:27 -07:00
damianedwards
8ecb147332
Added overload to PathString.StartsWithSegments to allow specifying StringComparison:
...
- This allows us to have a fast-path (or just be more explicit) for the comparison by doing case-sensitive checks (which are cheaper)
2015-10-04 21:54:52 -07:00
Pranav K
61466af7a3
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:37 -07:00
Pranav K
3cb50b9cf5
Remove Microsoft.Framework.WebEncoders.Testing dependency
2015-10-03 14:11:00 -07:00
Pranav K
5f7a17b8e3
Move BufferedHtmlContent to HttpAbstractions
2015-10-03 10:36:54 -07:00
Ryan Nowak
c62aa147f4
Make .Clear() consistent with TagHelperOutput
2015-09-25 17:17:28 -07:00
Ryan Nowak
a602b47e26
Add AppendFormat extension methods on IHtmlContent
2015-09-25 15:49:27 -07:00
Pranav K
7816c0183e
Removing Microsoft.Framework.Primitives from HttpAbstractions
2015-09-20 10:20:58 -07:00
Pranav K
ceded805f3
Formatting fixes
2015-09-18 15:17:41 -07:00
Pranav K
58974a9def
Replacing NotNullAttribute with thrown exceptions
2015-09-18 15:11:27 -07:00
Ryan Nowak
e56c3806b6
Add tests for HtmlContentBuilderExtensions
2015-09-15 23:45:44 -07:00
Chris R
00d5a056d9
#360 Add Response.Clear() extension.
2015-09-10 11:30:42 -07:00
Justin Van Patten
df33a3cff8
StringValues improvements
...
- Add public struct enumerator (avoids enumerator allocations)
- Implement IReadOnlyList<string>
- Rename indexer parameter name from "key" to "index"
- Faster IndexOf (no more enumerator allocation & faster array enumeration)
- Faster Contains (no more box allocation)
- Faster CopyTo (no more enumerator allocation)
- Faster Concat (no more enumerator allocations; use CopyTo)
2015-09-09 09:17:06 -07:00
Justin Van Patten
20e534a570
Add more StringValues tests
2015-09-09 09:17:05 -07:00
Chris R
4e0f0c79ec
#366 Rewind the request buffer after parsing the form.
2015-09-08 12:04:53 -07:00
Levi B
43d0b0f65b
Update WebEncoders from Unicode 7.0 to Unicode 8.0
...
Add "how to update" file detailing update steps
2015-09-05 17:32:27 -07:00
Chris R
f475e53ad2
#367 Add HttpContext.Features, move Get/SetFeature. Take 1.
2015-08-30 21:55:22 -07:00
Chris R
456277fe1d
#361 Introduce StringValues to replace string[] usage.
2015-08-28 12:11:13 -07:00
Kristian Hellang
68eb9646ea
Added asserts to tests
2015-08-21 09:38:53 +02:00
Hao Kung
67803d2f41
Challenge now always checks for accept
2015-08-11 16:15:48 -07:00
Troy Dai
3cd5907fc5
Update CoreCLR versions
2015-08-05 09:33:00 -07:00
Chris R
9c3a39123a
#341 Add HttpReqeuest GetEncodedUrl and GetDecodedUrl extensions.
2015-08-04 10:09:39 -07:00
Chris R
ac945a0bcf
#339 Reduce IFeatureCollection surface area.
2015-08-03 14:55:25 -07:00
Chris R
b8af07e3c1
#60 Merge FeatureModel into Http.Features. Remove unused FeatureObject.
2015-07-16 15:10:48 -07:00
sornaks
25ea93de9e
Making QueryHelpers.AddQueryString support # in the URL.
2015-07-09 16:08:45 -07:00
Chris R
40719b37f6
#177 Enable Copy to return non-read-only.
2015-06-26 14:34:22 -07:00