Dela via


DirectoryBrowserMiddleware Class

Definition

Enables directory browsing

public ref class DirectoryBrowserMiddleware
public class DirectoryBrowserMiddleware
type DirectoryBrowserMiddleware = class
Public Class DirectoryBrowserMiddleware
Inheritance
DirectoryBrowserMiddleware

Constructors

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)

Creates a new instance of the SendFileMiddleware.

DirectoryBrowserMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DirectoryBrowserOptions>)

Creates a new instance of the SendFileMiddleware. Using Default instance.

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, HtmlEncoder, IOptions<DirectoryBrowserOptions>)

Creates a new instance of the SendFileMiddleware.

DirectoryBrowserMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DirectoryBrowserOptions>)

Creates a new instance of the SendFileMiddleware. Using Default instance.

Methods

Invoke(HttpContext)

Examines the request to see if it matches a configured directory. If so, a view of the directory contents is returned.

Applies to