1 // Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
2 
3 namespace System.Net.Http.Formatting
4 {
5     /// <summary>
6     /// Contains information about the degree to which a <see cref="MediaTypeFormatter"/> matches the
7     /// explicit or implicit preferences found in an incoming request.
8     /// </summary>
9     internal enum ResponseFormatterSelectionResult
10     {
11         /// <summary>
12         /// No match was found
13         /// </summary>
14         None,
15 
16         /// <summary>
17         /// Matched on type meaning that the formatter is able to serialize the type
18         /// </summary>
19         MatchOnCanWriteType,
20 
21         /// <summary>
22         /// Matched on explicit content-type set on the <see cref="HttpResponseMessage"/>.
23         /// </summary>
24         MatchOnResponseContentType,
25 
26         /// <summary>
27         /// Matched on explicit accept header set in <see cref="HttpRequestMessage"/>.
28         /// </summary>
29         MatchOnRequestAcceptHeader,
30 
31         /// <summary>
32         /// Matched on <see cref="HttpRequestMessage"/> after having applied
33         /// the various <see cref="MediaTypeMapping"/>s.
34         /// </summary>
35         MatchOnRequestWithMediaTypeMapping,
36 
37         /// <summary>
38         /// Matched on the media type of the <see cref="HttpContent"/> of the <see cref="HttpRequestMessage"/>.
39         /// </summary>
40         MatchOnRequestContentType,
41     }
42 }
43