Class FileServerMiddlewareExtensions
Inheritance
FileServerMiddlewareExtensions
Assembly: Coree.NETASP.dll
Syntax
public static class FileServerMiddlewareExtensions
Methods
|
Edit this page
View Source
GetFullRequestUri(HttpContext)
Declaration
public static Uri GetFullRequestUri(HttpContext context)
Parameters
Returns
|
Edit this page
View Source
Parses the Accept header from the provided HttpContext and returns a list of MIME types sorted by their quality factor.
Declaration
public static List<string> ParseAcceptHeader(HttpContext context)
Parameters
Type |
Name |
Description |
HttpContext |
context |
The HttpContext from which to extract the Accept header.
|
Returns
Type |
Description |
List<string> |
A list of MIME types sorted by quality factor in descending order.
|
|
Edit this page
View Source
UseFileServerMiddleware(IApplicationBuilder, string)
Declaration
public static IApplicationBuilder UseFileServerMiddleware(this IApplicationBuilder builder, string rootPath)
Parameters
Returns