RequestHeaderMapping Constructor (String, String, StringComparison, Boolean, )
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, MediaTypeHeaderValue 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 StringComparison 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: MediaTypeHeaderValue
The MediaTypeHeaderValue to use if headerName and headerValue is considered a match.