public static async Task PutFileContentAsync(this HttpResponse response, string filePath, IFileProvider fileProvider, IHeaderDictionary headers = null) { var handler = new HttpFileHandler(fileProvider, response.HttpContext, filePath, headers); await handler.PutFileContent(); }
public static void WriteFileContentHeaders(this HttpResponse response, string filePath, IFileProvider fileProvider, IHeaderDictionary headers = null) { var handler = new HttpFileHandler(fileProvider, response.HttpContext, filePath, headers); handler.WriteFileContentHeaders(); }