XmlHttpRequestHeaderMapping Class

 

A RequestHeaderMapping that maps the X-Requested-With http header field set by AJAX XmlHttpRequest (XHR) to the media type application/json if no explicit Accept header fields are present in the request.

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

System::Object
  System.Net.Http.Formatting::MediaTypeMapping
    System.Net.Http.Formatting::RequestHeaderMapping
      System.Net.Http.Formatting::XmlHttpRequestHeaderMapping

public ref class XmlHttpRequestHeaderMapping : RequestHeaderMapping

NameDescription
System_CAPS_pubmethodXmlHttpRequestHeaderMapping()

Initializes a new instance of XmlHttpRequestHeaderMapping class

NameDescription
System_CAPS_pubpropertyHeaderName

Gets the name of the header to match. (Inherited from RequestHeaderMapping.)

System_CAPS_pubpropertyHeaderValue

Gets the header value to match. (Inherited from RequestHeaderMapping.)

System_CAPS_pubpropertyHeaderValueComparison

Gets the StringComparison to use when matching M:HeaderValue. (Inherited from RequestHeaderMapping.)

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. (Inherited from RequestHeaderMapping.)

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 RequestHeaderMapping::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: