Commit Graph

636 Commits

Author SHA1 Message Date
Brennan 5e42d26fd5 Implement GetHashCode 2015-12-08 10:29:53 -08:00
Pranav K 5231683aae * Removing unused dependencies from code
* Cleaning up usage of CodeAnalysis.
2015-12-07 19:22:53 -08:00
David Fowler dfe2d41437 Merge pull request #500 from khellang/form-file-name
Add Name and FileName to IFormFile
2015-12-04 12:01:24 -08:00
Kristian Hellang c2e7618d9a Added Name and FileName to IFormFile
This commits also gets rid of the name
closure in FormFileCollection by interating
over the files in the collection instead
of using Find and FindAll.

Closes #352 and #499
2015-12-04 20:28:42 +01:00
David Fowler 9887fe0dee Move the header extensions to Http.Abstractions 2015-12-02 23:58:16 -08:00
David Fowler 6055e25d19 Fixed typo in doc comment 2015-12-02 22:51:48 -08:00
David Fowler 5b175beea8 Change SendFileAsync to use a fallback implementation instead of throwing
- If the user wants to use the SendFile API directly then they can access the feature
explicitly.
- Removed SupportsSendFile
- Don't check for existence, let FileStream throw
- Updated Doc comments
- Pass the buffer into StreamCopyOperation
- Using a real using instead of try finally.
2015-12-02 22:37:53 -08:00
Pranav K a0a1c38e44 Moving Microsoft.AspNet.Html.Abstractions to a HtmlAbstractions repo
Fixes #418
2015-12-01 17:35:20 -08:00
John Luo 67aa2546a8 Removing ApplicationServices from HttpContext #466 2015-11-19 09:34:38 -08:00
Pranav K 78e90d7f04 Update ifdefs from DNXCORE50 to DOTNET5_4
Fixes #467
2015-11-18 12:29:47 -08:00
Pavel Krymets 681533e06c Set IHttpContextAccessor only if DI provides it 2015-11-18 09:15:27 -08:00
Doug Bunting 4efc40d8b1 Move Travis to supported Linux distribution
- use Ubuntu 14.04 (Trusty)
  - Travis support for Trusty is in Beta and currently requires `sudo`
- run `dnu restore` with DNX Core since aspnet/External#49 is not fixed in Mono versions we can use
- add required dependencies for DNX Core to `.travis.yml`
- addresses part of aspnet/Universe#290
2015-11-17 12:46:36 -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
Doug Bunting 9e5ba94804 Explicitly choose Mono 4.0.5
- avoids future problems related to aspnet/External#48
  - e.g. when Travis updates default Mono version in `csharp` bundle
2015-11-17 11:00:20 -08:00
Pavel Krymets 690e5a66e5 Set default path=/ when removing cookie 2015-11-16 15:58:18 -08:00
Ryan Nowak cb3e9b1218 Change List<T> to IList<T> 2015-11-16 10:51:30 -08:00
John Luo d4d04d2c96 Adding exception message for paths not starting with / #251 2015-11-16 10:21:02 -08:00
Ryan Nowak d25c25c4b2 Remove old package from nuget verifier 2015-11-16 08:55:10 -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
David Fowler f813d3cce8 Merge pull request #469 from khellang/uri-helper-string-concat
Changed string.Format to StringBuilder
2015-11-10 14:08:32 -08:00
Kristian Hellang f726b7b591 Added PERF comment 2015-11-10 19:55:14 +01: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
David Fowler 466ca57d4b Merge pull request #471 from benaadams/lazy-init
Lazily initialize DefaultHttpContext
2015-11-10 07:20:52 -08:00
Ben Adams e5a3285090 Lazily initialize DefaultHttpContext
Lazily initialize sub objects of DefaultHttpContext

Resolves #470
2015-11-10 15:05:29 +00:00
Kristian Hellang 7b35b2e1b9 Pass length to StringBuilder 2015-11-10 11:03:51 +01:00
Kristian Hellang 663c7917d0 Changed string.Format to StringBuilder 2015-11-10 10:31:56 +01: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
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