Summary
Contains configuration settings for a
FileSystemHandler.
Constructors
Static methods
string | | Returns a default MIME type for the specified extension. |
Instance methods
string | | Returns the MIME type for the specified local file. |
Instance fields
Func<HttpRequest, HttpResponse> | |
If directory listings are permitted, this handler is invoked to confirm that listing this specific directory
is permitted. The handler should return null to allow directory listing, or an appropriate response if
listing is not allowed. A null handler is identical to a handler that always returns null. |
DirectoryListingStyle | |
Specifies which way directory listings should be generated. Default is DirectoryListingStyle.XmlPlusXsl. |
int? | |
Specifies the value for the CacheControl max-age header on the files served by the file system handler, in
seconds. Set to null to prevent this header being sent, which will result in the browser caching the file
indefinitely. The If-Modified-Since mechanism is always used regardless of this setting. |
Dictionary<string, string> | |
Maps from file extension to MIME type. Use the key "*" to specify a default (fallback) MIME type. Use the
value "detect" to specify that FileSystemHandler should examine the file and decide between
"text/plain; charset=utf-8" and "application/octet-stream", depending on whether the file is text or binary. |
Action<HttpResponseHeaders, FileSystemResponseType> | | Specifies a method to modify response headers before they go out to the client. |