IContentNegotiator
Performs content negotiation. This is the process of selecting a response writer (formatter) in compliance with header values in the request.
ContentNegotiationResult Negotiate(Type type, HttpRequestMessage request, IEnumerable<MediaTypeFormatter> formatters)
Performs content negotiating by selecting the most appropriate MediaTypeFormatter out of the passed in formatters for the given request that can serialize an object of the given type.