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
Hao Kung
5fe8037281
Auth API changes (Async, ChallengeBehavior)
2015-06-25 17:03:10 -07:00
Chris R
652d885402
#177 Immutable HeaderValue objects.
2015-06-25 09:34:14 -07:00
Mikael Mengistu
12b78a31bf
Added more tests and error handling for construction of middleware classes #236
2015-06-24 10:03:56 -07:00
Brennan
1abb33d4bc
Adding a couple mono tests back in
2015-06-23 09:02:41 -07:00
Kiran Challa
6407a1672d
Session API review changes.
2015-06-03 21:51:17 -07:00
Chris R
99ea4fed8a
#176 Add Clone() to MediaTypeHeaderValue and NameValueHeaderValue.
2015-05-14 22:23:12 -07:00
Chris R
dce1d0e88f
#272 Make more properties settable (Items, RequestAborted, IsHttps, Query, Cookies).
2015-05-12 11:02:58 -07:00
Chris R
c4df4a0a15
#303 Enable tests for CoreCLR.
2015-05-08 10:52:43 -07:00
Chris R
eb0fe6a92a
#281 Reorganise files, namespaces for internal and features.
2015-05-07 13:15:14 -07:00
Chris R
550b2252ea
#265 Remove Use extensions that take services.
2015-05-07 13:15:11 -07:00
Chris R
c9c09fb4e5
#269 Clean up QueryString APIs, add tests.
2015-05-06 10:55:20 -07:00
N. Taylor Mullen
8703e2d7f2
Update LICENSE.txt and license header on files.
2015-05-01 13:52:04 -07:00
Chris R
5bce140681
#295 Rename Core->Abstractions and Interfaces->Features.
2015-04-29 14:38:26 -07:00
Chris Ross
cc1a24b949
#273 - Use POCOs for auth context objects.
2015-04-23 15:16:23 -07:00
Chris Ross
4637a95157
#266 Consolidate authentication APIs.
2015-04-23 15:15:02 -07:00
Chris Ross
25aed6f88e
#274 Reorganize the strong header type extensions. Remove SendAsync extensions.
2015-04-22 11:43:12 -07:00
Ajay Bhargav Baaskaran
d4132d98fd
Moved CommonTestEncoder to Testing repo
2015-04-21 13:32:02 -07:00
Chris Ross
65e57d28f3
Add PathString+string operator to prevent too much string<->PathString implicit conversion.
2015-04-21 11:08:54 -07:00
Chris Ross
86bd393d3d
Add string+PathString operator to prevent too much string<->PathString implicit conversion.
2015-04-21 10:23:22 -07:00
Chris Ross
4030be585d
#265 Add implicit converters between string and PathString.
2015-04-20 10:54:33 -07:00
Chris Ross
7d7cd5fde7
#265 Remove some overloads for Run, Map, and MapWhen.
2015-04-17 12:28:02 -07:00
Chris Ross
d111e24da7
#190 - Swap Http and Http.Core package names. Remove Http.Core namespace.
2015-04-16 12:07:50 -07:00
Victor Hurdugaci
fab55afca5
Update resource names
2015-04-08 15:31:44 -07:00
Levi B
6c9055cadc
Fix CJK Ideographs and Hangul Syllables representation
...
Characters in these blocks weren't correctly identified as assigned characters, which caused the encoders to always encode them, even if the ranges were in the allow list.
2015-04-07 13:54:46 -07:00
Chris Ross
8da763a14a
Disable false positive date parser test.
2015-04-06 13:52:08 -07:00
Chris Ross
957a77219c
Use MemberData instead of InlineData.
2015-04-06 12:41:01 -07:00
Chris Ross
b62dde23e6
Add quotes in project.json file.
2015-04-06 12:09:27 -07:00
Chris Ross
c24a40517f
#246 Fix multipart test on linux.
2015-04-06 11:25:26 -07:00
Pranav K
1f127d25c3
* Adding TimeSpan to DateTimeOffset so test succeeds in non-PST timezones
...
* Removing unused dependency from project.json
2015-04-06 07:41:05 -07:00
Doug Bunting
c6bf89a04e
Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename
2015-04-02 13:49:26 -07:00
Levi B
1e9d57f80c
UrlEncoder should always encode the U+003A COLON character
...
Provides extra defense-in-depth in case an application is using this API to encode a relative URL, otherwise the part before the colon could inadvertently be treated as a scheme.
2015-03-17 17:19:20 -07:00
Praburaj
93deb0b440
Remove dependency on DependencyInjection and instead use DependencyInjection.Interfaces on Http.Extensions
...
Fixes: https://github.com/aspnet/HttpAbstractions/issues/228
2015-03-13 19:56:45 -07:00
Brennan
a06d05ffae
Update xunit.runner.kre => xunit.runner.aspnet.
2015-03-12 16:27:02 -07:00
N. Taylor Mullen
12f90869c0
Update .kproj => .xproj.
2015-03-11 14:07:45 -07:00
Praburaj
a6670114b1
Adding more fallbacks for BufferingHelper temporary folder location
...
Fixes:
https://github.com/aspnet/HttpAbstractions/issues/168
2015-03-10 21:20:50 -07:00
Levi B
ae456401a8
Change AllowedCharsBitmap back to a struct.
...
I also experimented with having a fixed uint[] field inside the struct, but this actually ended up having worse performance than a proper uint[] array reference since it defeated some of the JITter's optimizations.
2015-03-10 17:58:10 -07:00
Levi B
64077026c7
API cleanup: Rename UnicodeBlock -> UnicodeRange
...
Also clean up related doc comments
2015-03-10 17:58:03 -07:00
Praburaj
58c45cd379
SignOutContext needs AuthenticationProperties
2015-03-09 19:37:38 -07:00
Praburaj
9463b08d7b
Move SendFile HttpResponse extensions to Microsoft.AspNet.Http.Extensions
...
Addresses: https://github.com/aspnet/HttpAbstractions/issues/221
2015-03-09 15:05:16 -07:00
N. Taylor Mullen
973bf7865e
Remove BOM from project.json, *.cmd, *.sh and *.shade files.
2015-03-09 12:54:49 -07:00
N. Taylor Mullen
0ad48b90b2
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
2015-03-08 12:50:39 -07:00
Levi B
9988d5205e
GetXyzEncoder() shouldn't throw if IServiceProvider is null
...
Also remove dependency on full DI; use Interfaces instead
2015-03-05 18:43:59 -08:00
Praburaj
d5e1b198dc
Rename Microsoft.AspNet.Http.Interfaces => Microsoft.AspNet.Http
2015-03-05 16:54:21 -08:00
Brennan
09ccc84a17
DI API changes
2015-03-05 14:29:22 -08:00
Hao Kung
20848da93f
React to DI changes
2015-03-04 18:08:36 -08:00
Hao Kung
de1e8763dd
Security -> Authentication
...
AuthN renames and design changes
2015-03-02 15:25:52 -08:00
Levi B
04707ccaa0
Add unit tests for the service provider extensions
2015-02-27 14:44:12 -08:00
Levi B
eb42bc51fb
CodePointFilter parameterless ctor should be empty, not Basic Latin
2015-02-27 11:30:01 -08:00
Levi B
0ca24147a0
Add unit tests and code generation routines
2015-02-27 11:30:00 -08:00
Brennan
6224268953
Updating .kproj files
2015-02-04 14:20:22 -08:00
Chris Ross
15a51e423f
#175 - Decode multipart headers as UTF-8.
2015-01-22 09:42:09 -08:00
Stephen Halter
db484a7dcb
Rename Microsoft.AspNet.HttpFeature to Microsoft.AspNet.Http.Interfaces
2015-01-16 19:46:04 -08:00
Chris Ross
d43cf30eff
#162 - Rename PipelineCore project to Http.Core. Part 2.
2015-01-15 12:37:34 -08:00
Chris Ross
68be1d1b19
#162 - Change PipelineCore namespace to Http.Core. Part-1.
2015-01-15 11:52:34 -08:00
Chris Ross
4fb21644fc
Implement strongly typed headers.
2015-01-14 15:41:09 -08:00
Chris Ross
5872feb224
#139 - Mime multipart request parsing.
2015-01-07 15:42:46 -08:00
Brennan
b7eb1a92bb
Update tests to use official xunit
2014-12-15 15:09:59 -08:00
Victor Hurdugaci
7569703906
Add schema version to kproj files
2014-11-25 10:49:23 -08:00
Chris Ross
1dd3a2ee1f
#147 - OWIN: Throw KeyNotFoundException if the underlying Feature is missing. Return defaults for required entries.
2014-11-14 15:11:40 -08:00
Victor Hurdugaci
76bb27e5d3
Update KProj to the latest format
2014-11-12 15:09:59 -08:00
Louis DeJardin
b7d9e11a84
Middleware invokation with per-request services
...
* Extension methods for .Use<TService1, ...> and
.Run<TService1, ...> add service parameters to lambda
* Middleware class .Invoke method may take services as
additional parameters
2014-11-05 13:32:25 -08:00