IDirectoryFormatter Interface¶
Generates the view for a directory
- Namespace
Microsoft.AspNetCore.StaticFiles
- Assemblies
- Microsoft.AspNetCore.StaticFiles
Syntax¶
public interface IDirectoryFormatter
-
interface
Microsoft.AspNetCore.StaticFiles.
IDirectoryFormatter
Methods¶
-
GenerateContentAsync
(Microsoft.AspNetCore.Http.HttpContext, System.Collections.Generic.IEnumerable<Microsoft.Extensions.FileProviders.IFileInfo>)¶ Generates the view for a directory. Implementers should properly handle HEAD requests. Implementers should set all necessary response headers (e.g. Content-Type, Content-Length, etc.).
Return type: System.Threading.Tasks.Task Task GenerateContentAsync(HttpContext context, IEnumerable<IFileInfo> contents)
-