Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RequestHeaderMapping Class

 

This class provides a mapping from an arbitrary HTTP request header field to a MediaTypeHeaderValue used to select MediaTypeFormatter instances for handling the entity body of an HttpRequestMessage or HttpResponseMessage. <remarks>This class only checks header fields associated with M:HttpRequestMessage.Headers for a match. It does not check header fields associated with M:HttpResponseMessage.Headers or M:HttpContent.Headers instances.</remarks>

Namespace:   System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)


public ref class RequestHeaderMapping : MediaTypeMapping

NameDescription
System_CAPS_pubmethodRequestHeaderMapping(String^, String^, StringComparison, Boolean, MediaTypeHeaderValue^)

Initializes a new instance of the RequestHeaderMapping class.

System_CAPS_pubmethodRequestHeaderMapping(String^, String^, StringComparison, Boolean, String^)

Initializes a new instance of the RequestHeaderMapping class.

NameDescription
System_CAPS_pubpropertyHeaderName

Gets the name of the header to match.

System_CAPS_pubpropertyHeaderValue

Gets the header value to match.

System_CAPS_pubpropertyHeaderValueComparison

Gets the StringComparison to use when matching M:HeaderValue.

System_CAPS_pubpropertyIsValueSubstring

Gets a value indicating whether M:HeaderValue is a matched as a substring of the actual header value. this instance is value substring.

System_CAPS_pubpropertyMediaType

Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryMatchMediaType(HttpRequestMessage^)

Returns a value indicating whether the current RequestHeaderMapping instance can return a MediaTypeHeaderValue from request. (Overrides MediaTypeMapping::TryMatchMediaType(HttpRequestMessage^).)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: