C# Class MvcApi.Formatting.RequestHeaderMapping

Inheritance: MediaTypeMapping
Mostra file Open project: dax70/MvcApi Class Usage Examples

Public Methods

Method Description
RequestHeaderMapping ( string headerName, string headerValue, System.StringComparison valueComparison, bool isValueSubstring, MediaTypeHeaderValue mediaType ) : System
RequestHeaderMapping ( string headerName, string headerValue, System.StringComparison valueComparison, bool isValueSubstring, string mediaType ) : System

Protected Methods

Method Description
OnTryMatchMediaType ( HttpRequestMessage request ) : double
OnTryMatchMediaType ( HttpResponseMessage response ) : double

Private Methods

Method Description
Initialize ( string headerName, string headerValue, System.StringComparison valueComparison, bool isValueSubstring ) : void
MatchHeaderValue ( HttpRequestMessage request, string headerName, string headerValue, System.StringComparison valueComparison, bool isValueSubstring ) : double

Method Details

OnTryMatchMediaType() protected method

protected OnTryMatchMediaType ( HttpRequestMessage request ) : double
request MvcApi.Http.HttpRequestMessage
return double

OnTryMatchMediaType() protected method

protected OnTryMatchMediaType ( HttpResponseMessage response ) : double
response MvcApi.Http.HttpResponseMessage
return double

RequestHeaderMapping() public method

public RequestHeaderMapping ( string headerName, string headerValue, System.StringComparison valueComparison, bool isValueSubstring, MediaTypeHeaderValue mediaType ) : System
headerName string
headerValue string
valueComparison System.StringComparison
isValueSubstring bool
mediaType System.Net.Http.Headers.MediaTypeHeaderValue
return System

RequestHeaderMapping() public method

public RequestHeaderMapping ( string headerName, string headerValue, System.StringComparison valueComparison, bool isValueSubstring, string mediaType ) : System
headerName string
headerValue string
valueComparison System.StringComparison
isValueSubstring bool
mediaType string
return System