ASP.NET Web API provides very streamlined support in the framework to handle content negotiation. In HTTP specs, following Accept series of headers are used in a HTTP client to set in the request for content:
1 2 3 4 |
Accept Accept-Charset Accept-Encoding Accept-Language |
ASP.NET Web API supports first two headers out of the box. The framework itself would select the right MediaTypeFormatter class […]