namespace OwinFramework.InterfacesV1.Facilities
{
///
/// Determines the appropriate mime type to use for a response.
/// Can use configuration or logic to determine the correct type
///
public interface IMimeTypeEvaluator
{
///
/// Maps a file extension onto a mime type
///
string MimeTypeFromExtension(string fileExtension);
///
/// Evaluates the contents of a response and determines
/// the mime type by looking for known patterns in the date
///
string MimeTypeFromContent(string fileContent);
///
/// Evaluates the contents of a response and determines
/// the mime type by looking for known patterns in the date
///
string MimeTypeFromContent(byte[] content);
}
}