C# Class Subtext.Framework.Configuration.MimeTypesMapper

ファイルを表示 Open project: ayende/Subtext

Public Methods

Method Description
GetMimeType ( string ext ) : string

Returns the mimetype that corresponds to a file extension.

MimeTypesMapper ( NameValueCollection config ) : System
ParseUrl ( string url ) : string

Detect the mimetype of the url of a file.

Method Details

GetMimeType() public method

Returns the mimetype that corresponds to a file extension.
public GetMimeType ( string ext ) : string
ext string Extension of a file.
return string

MimeTypesMapper() public method

public MimeTypesMapper ( NameValueCollection config ) : System
config System.Collections.Specialized.NameValueCollection
return System

ParseUrl() public method

Detect the mimetype of the url of a file.
public ParseUrl ( string url ) : string
url string Url of the file
return string