StaticFileResponseContext Class¶
Contains information about the request and the file that will be served in response.
- Namespace
Microsoft.AspNetCore.StaticFiles
- Assemblies
- Microsoft.AspNetCore.StaticFiles
Syntax¶
public class StaticFileResponseContext
-
class
Microsoft.AspNetCore.StaticFiles.
StaticFileResponseContext
Properties¶
-
Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext.
Context
¶ The request and response information.
Return type: Microsoft.AspNetCore.Http.HttpContext public HttpContext Context { get; }
-
Microsoft.AspNetCore.StaticFiles.StaticFileResponseContext.
File
¶ The file to be served.
Return type: Microsoft.Extensions.FileProviders.IFileInfo public IFileInfo File { get; }
-