FileServerExtensions Class

Definition

Extension methods that combine all of the static file middleware components: Default files, directory browsing, send file, and static files

public ref class FileServerExtensions abstract sealed
public static class FileServerExtensions
type FileServerExtensions = class
Public Module FileServerExtensions
Inheritance
FileServerExtensions

Methods

UseFileServer(IApplicationBuilder)

Enable all static file middleware (except directory browsing) for the current request path in the current directory.

UseFileServer(IApplicationBuilder, Boolean)

Enable all static file middleware on for the current request path in the current directory.

UseFileServer(IApplicationBuilder, FileServerOptions)

Enable all static file middleware with the given options

UseFileServer(IApplicationBuilder, String)

Enables all static file middleware (except directory browsing) for the given request path from the directory of the same name

Applies to