Microsoft.AspNetCore.StaticFiles Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains middlewares for serving and browsing static files.
Classes
DefaultFilesMiddleware |
This examines a directory path and determines if there is a default file present. If so the file name is appended to the path and execution continues. Note we don't just serve the file because it may require interpretation. |
DirectoryBrowserMiddleware |
Enables directory browsing |
FileExtensionContentTypeProvider |
Provides a mapping between file extensions and MIME types. |
HtmlDirectoryFormatter |
Generates an HTML view for a directory. |
StaticFileMiddleware |
Enables serving static files for a given request path |
StaticFileResponseContext |
Contains information about the request and the file that will be served in response. |
Interfaces
IContentTypeProvider |
Used to look up MIME types given a file path |
IDirectoryFormatter |
Generates the view for a directory |
Remarks
For more information about configuring static files, see Static files in ASP.NET Core.