KestrunHostStaticFilesExtensions.AddDirectoryBrowser method
Adds a directory browser middleware to the application. This middleware enables directory browsing for a specified request path.
public static KestrunHost AddDirectoryBrowser(this KestrunHost host, string requestPath)
| parameter | description |
|---|---|
| host | The KestrunHost instance to configure. |
| requestPath | The request path to enable directory browsing for. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHostStaticFilesExtensions
- namespace Kestrun.Hosting