Share via


MediaTypeFormatterExtensions.AddRequestHeaderMapping Method

Include Protected Members
Include Inherited Members

Updates the given set of formatter of MediaTypeMapping elements so that it associates the mediaType with a specific HTTP request header field with a specific value.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, MediaTypeHeaderValue) Updates the given set of formatter of MediaTypeMapping elements so that it associates the mediaType with a specific HTTP request header field with a specific value.
Public methodStatic member AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, String) Updates the given set of formatter of MediaTypeMapping elements so that it associates the mediaType with a specific HTTP request header field with a specific value.

Top

See Also

Reference

MediaTypeFormatterExtensions Class

System.Net.Http.Formatting Namespace