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
Afficher le fichier Open project: dax70/MvcApi

Private Properties

Свойство Type Description
GetUriPathExtensionOrNull string
Initialize void
UriPathExtensionMapping System
UriPathExtensionMapping System

Méthodes protégées

Méthode Description
OnTryMatchMediaType ( HttpRequestMessage request ) : double
OnTryMatchMediaType ( HttpResponseMessage response ) : double

Private Methods

Méthode 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 méthode

protected final OnTryMatchMediaType ( HttpRequestMessage request ) : double
request MvcApi.Http.HttpRequestMessage
Résultat double

OnTryMatchMediaType() protected final méthode

protected final OnTryMatchMediaType ( HttpResponseMessage response ) : double
response MvcApi.Http.HttpResponseMessage
Résultat double