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

Created Issue: Create HttpContent extension helpers for detecting XML and JSON content [317]

$
0
0
Add HttpContent extension methods for helping determining whether a given content is XML or JSON. The reason why this isn't easy is that the media type can be any of a number of values. For example, for JSON, the value can be any of these:

application/json
text/json
application/vnd.collection+json
image/something+json

Similar for XML, the values can be any of these:

application/xml
text/xml
application/rdf+json
image/svg+json

We have similar helpers for detecting MIME multipart content which is equally complicated to match (albeit for other reasons).

Henrik

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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