private bool TransmitRequestedFileIfItExists()
{
if (System.IO.File.Exists(this.Context.Request.PhysicalPath))
{
this.addMimeTypeFromExtension(Path.GetExtension(this.Context.Request.Path).OrIfNullOrEmpty(Extension.html).ToLower());
#if DEBUG
this.stopWatch.Stop();
this.Context.Response.AddHeader("x-content-load-time", this.stopWatch.ElapsedMilliseconds.ToString() + "ms");
#endif
this.Context.Response.TransmitFile(this.Context.Request.PhysicalPath);
return true;
}
return false;
}