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.
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
System.Net.Http.Formatting::MediaTypeMapping
System.Net.Http.Formatting::RequestHeaderMapping
System.Net.Http.Formatting::XmlHttpRequestHeaderMapping
| Name | Description | |
|---|---|---|
![]() | XmlHttpRequestHeaderMapping() | Initializes a new instance of XmlHttpRequestHeaderMapping class |
| Name | Description | |
|---|---|---|
![]() | HeaderName | Gets the name of the header to match. (Inherited from RequestHeaderMapping.) |
![]() | HeaderValue | Gets the header value to match. (Inherited from RequestHeaderMapping.) |
![]() | HeaderValueComparison | Gets the StringComparison to use when matching M:HeaderValue. (Inherited from RequestHeaderMapping.) |
![]() | IsValueSubstring | 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.) |
![]() | MediaType | Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
![]() | TryMatchMediaType(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.


