Class StaticFileOptions
- Namespace
- Cratis.Arc.Http
- Assembly
- Cratis.Arc.Core.dll
Options for static file serving middleware.
public class StaticFileOptions
- Inheritance
-
StaticFileOptions
- Inherited Members
- Extension Methods
Constructors
StaticFileOptions()
public StaticFileOptions()
Properties
ContentTypeMappings
Gets or sets custom content type mappings by file extension.
public IDictionary<string, string> ContentTypeMappings { get; set; }
Property Value
DefaultFileNames
Gets or sets the default file names to look for.
public IList<string> DefaultFileNames { get; set; }
Property Value
EnableDirectoryBrowsing
Gets or sets a value indicating whether directory browsing is enabled.
public bool EnableDirectoryBrowsing { get; set; }
Property Value
FileSystemPath
Gets or sets the file system path to serve files from.
public string FileSystemPath { get; set; }
Property Value
RequestPath
Gets or sets the request path prefix. Defaults to empty string (root).
public string RequestPath { get; set; }
Property Value
ServeDefaultFiles
Gets or sets a value indicating whether to serve default files (e.g., index.html).
public bool ServeDefaultFiles { get; set; }