Commit Graph

458 Commits

Author SHA1 Message Date
Chris R f050e09283 Revert use of explicit converters that prevent APIs from returning null. 2015-11-04 16:03:36 -08:00
Nick Craver bacf76098e Performance improvements
This adds additional performance improvements (namely string.Concat
overloads) on top of #411.
2015-11-03 06:55:13 -05:00
Chris R 7e573631f7 Make other FormReader.ReadForm return Dictionary. 2015-11-02 15:56:06 -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
David Fowler c80946260a Change the namespace of RequestDelegate
- change it to Microsoft.AspNet.Http
2015-10-30 12:25:21 -07:00
Chris R 99aa148342 Remove un-used namespace. 2015-10-30 10:56:00 -07:00
Chris R 7b9e3adcf3 Remove deleted WebEncoders.Core package from NuGetPackageVerifier 2015-10-30 10:23:47 -07:00
Chris R be4fb46281 #391 Migrate to System.Text.Encoding.Web 2015-10-30 10:13:02 -07:00
Pranav K f177f0c760 Add ForbidAsync overload for automatic authentication scheme. 2015-10-29 14:55:39 -07:00
Pranav K e4bf2f3f13 Merge branch 'release' into dev 2015-10-28 12:49:54 -07:00
Pranav K 7ad859b5c0 Updating to release NuGet.config. 2015-10-28 12:43:05 -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
Pranav K 0219aabc17 Switching to using generations TFM 2015-10-21 21:11:25 -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
DamianEdwards 7ed6a6cb57 Add doc-comments for main APIs
- Coherence-Signed#75
2015-10-19 16:33:19 -07:00
Cesar Blum Silveira f00c7c6d06 Fix CoreCLR test pass on Linux (fixes #442). 2015-10-19 14:27:01 -07:00
Ryan Nowak 221df71425 Incorporate StringSegment from primitives 2015-10-16 08:39:58 -07:00
Chris R 4083c18d1e Merge pull request #441 from benaadams/patch-2
Comment cleanup
2015-10-15 16:45:24 -07:00
Ben Adams 3276115877 Comment sp 2015-10-16 00:40:37 +01:00
Chris R 7d62a188e1 Merge pull request #440 from benaadams/move-request-identifier
Expose TraceIdentifier on Httpcontext
2015-10-15 14:16:30 -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
David Fowler d565659de7 Merge pull request #420 from benaadams/Features-perf
Remove FeatureReference indirection
2015-10-15 04:03:23 -07:00
Ben Adams 1f4ca55799 Features performance
Use FeatureCacheHelpers static methods rather than struct FeatureReference by default for lower allocation
2015-10-14 23:59:29 +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
Doug Bunting a0b29e3f2b Fix local build break 2015-10-12 12:55:41 -07:00
Doug Bunting 2303220cf6 React to aspnet/Universe#290 fix 2015-10-12 10:35:52 -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 78a8748248 Fixing build break 2015-10-03 11:12:41 -07:00
Pranav K 886849d890 Adding AssemblyInfo.cs 2015-10-03 11:07:52 -07:00
Pranav K 079e4909f7 Adding BufferedHtmlContent to NuGetPackageVerifier 2015-10-03 11:03:14 -07:00
Pranav K 5f7a17b8e3 Move BufferedHtmlContent to HttpAbstractions 2015-10-03 10:36:54 -07:00
N. Taylor Mullen 8ef20c5c56 Update 'build.cmd' alias parameter to use full name. 2015-10-01 11:57:25 -07:00
Chris R 894c8dbe2b Hosting#359 Remove IDisposable from HttpContext and IFeatureCollection. 2015-09-30 14:31:03 -07:00
Pranav K 147574247c Merge branch 'release' into dev 2015-09-28 23:12:19 -07:00
Pranav K 326dc222f0 Updating to release NuGet.config. 2015-09-28 23:12:17 -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
Ajay Bhargav Baaskaran d82bc7ca9d Enabling NuGetPackageVerifier 2015-09-24 10:33:08 -07:00
Hao Kung 551da3e558 Caption => DisplayName 2015-09-23 14:57:14 -07:00
Brennan 3a8ecc7d4a Add Dictionary and List dependency to dnxcore50 2015-09-23 14:46:52 -07:00