public void SendFile(string filePath)
{
string type = "";
if (DoesFileNameHaveExtentsion(filePath))
type = MapMIMEType(filePath, type);
using (Stream inputStream = FileStreamFactory.Create(filePath)) {
// Send the header
SendHeader(type, inputStream);
SendResponseFromFile(inputStream);
}
}