Go to file
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
samples/SampleApp Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:37 -07:00
src Restore `null` and `string.Empty` handling from `EncoderExtensions` 2015-11-02 09:40:42 -08:00
test Restore `null` and `string.Empty` handling from `EncoderExtensions` 2015-11-02 09:40:42 -08:00
.gitattributes
…
.gitignore
…
.travis.yml Update .travis.yml and appveyor.yml to build quietly. 2015-04-07 16:15:21 -07:00
CONTRIBUTING.md Update Home master -> Home dev 2015-05-12 11:46:51 -07:00
HttpAbstractions.sln #391 Migrate to System.Text.Encoding.Web 2015-10-30 10:13:02 -07:00
LICENSE.txt Update LICENSE.txt and license header on files. 2015-05-01 13:52:04 -07:00
NuGet.config Replacing NotNullAttribute with thrown exceptions 2015-09-18 15:11:27 -07:00
NuGetPackageVerifier.json Remove deleted WebEncoders.Core package from NuGetPackageVerifier 2015-10-30 10:23:47 -07:00
README.md
…
appveyor.yml Update .travis.yml and appveyor.yml to build quietly. 2015-04-07 16:15:21 -07:00
build.cmd Fix local build break 2015-10-12 12:55:41 -07:00
build.sh React to aspnet/Universe#290 fix 2015-10-12 10:35:52 -07:00
global.json
…
makefile.shade Rename `AppendEncoded()` to `AppendHtml()` and `SetContentEncoded()` to `SetHtmlContent()` 2015-10-22 16:41:17 -07:00

README.md

HttpAbstractions

AppVeyor: AppVeyor

Travis: Travis

Contains HTTP abstractions for ASP.NET 5 such as HttpRequest, HttpResponse. Also contains IBuilder and types to create your application's hosting pipeline.

This project is part of ASP.NET 5. You can find samples, documentation and getting started instructions for ASP.NET 5 at the Home repo.