RequestHeaderMapping Constructor (String, String, StringComparison, Boolean, String)

Initializes a new instance of the RequestHeaderMapping class.

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

public RequestHeaderMapping(
	string headerName,
	string headerValue,
	StringComparison valueComparison,
	bool isValueSubstring,
	string mediaType
)

Parameters

headerName
Type: System.String
Name of the header to match.
headerValue
Type: System.String
The header value to match.
valueComparison
Type: System.StringComparison
The value comparison to use when matching headerValue.
isValueSubstring
Type: System.Boolean
if set to true then headerValue is considered a match if it matches a substring of the actual header value.
mediaType
Type: System.String
The media type to use if headerName and headerValue is considered a match.
Show: