Dela via


StaticFileMiddleware Class

Definition

Enables serving static files for a given request path

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

Constructors

StaticFileMiddleware(RequestDelegate, IHostingEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)

Creates a new instance of the StaticFileMiddleware.

StaticFileMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<StaticFileOptions>, ILoggerFactory)

Creates a new instance of the StaticFileMiddleware.

Methods

Invoke(HttpContext)

Processes a request to determine if it matches a known file, and if so, serves it.

Applies to