IContentNegotiator IContentNegotiator IContentNegotiator Interface

Definition

Performs content negotiation. This is the process of selecting a response writer (formatter) in compliance with header values in the request.

public interface IContentNegotiator
type IContentNegotiator = interface
Public Interface IContentNegotiator
Derived

Methods

Negotiate(Type, HttpRequestMessage, IEnumerable<MediaTypeFormatter>) Negotiate(Type, HttpRequestMessage, IEnumerable<MediaTypeFormatter>) Negotiate(Type, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)

Performs content negotiating by selecting the most appropriate System.Net.Http.Formatting.MediaTypeFormatter out of the passed in formatters for the given request that can serialize an object of the given type.

Applies to