C# Class MvcApi.Formatting.UriPathExtensionMapping

Class that provides T:System.Net.Http.Headers.MediaTypeHeaderValues from path extensions appearing in a T:System.Uri.
Inheritance: MediaTypeMapping
Mostra file Open project: dax70/MvcApi

Private Properties

Property Type Description
GetUriPathExtensionOrNull string
Initialize void
UriPathExtensionMapping System
UriPathExtensionMapping System

Protected Methods

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

Private Methods

Method Description
GetUriPathExtensionOrNull ( Uri uri ) : string
Initialize ( string uriPathExtension ) : void
UriPathExtensionMapping ( string uriPathExtension, MediaTypeHeaderValue mediaType ) : System
UriPathExtensionMapping ( string uriPathExtension, string mediaType ) : System

Method Details

OnTryMatchMediaType() protected final method

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

OnTryMatchMediaType() protected final method

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