Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Feature: Provider portable helpers for parsing and creating query strings [1305]

$
0
0
We shipped a query string parser in System.Net.Http.Formatting.dll, but it didn't make it into the portable System.Net.Http.Formatting.dll implementation because of the dependency on NameValueCollection (see https://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Net.Http.Formatting/UriExtensions.cs). We should ship a portable query string parsing implementation as well as a portable API for creating query strings.

Write two methods:
1. Given Uri or Uri string -> Query string parsed as name value pairs
2. Given a set of name value pair -> Produce a query string that can be used by a UriBuilder
Comments: Verified. There are couple of things about which i have questions though.. 1. Like HttpValueCollection doesn't have an indexer to get values. One has to use Get("") methods to get value of an item. Discussed with Yishai already...need to check with Dan 2. when there are multiple pairs with same key(ignoring the case), when we do a Get("") it gives a comma separated values...not sure if this is good especially if a query string value itself has a comma

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>