You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Controller/Net/StaticResultOptions.cs

43 lines
1.0 KiB

using System;
6 years ago
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Net
{
public class StaticResultOptions
{
public string ContentType { get; set; }
6 years ago
public TimeSpan? CacheDuration { get; set; }
6 years ago
public DateTime? DateLastModified { get; set; }
6 years ago
public Func<Task<Stream>> ContentFactory { get; set; }
public bool IsHeadRequest { get; set; }
public IDictionary<string, string> ResponseHeaders { get; set; }
public Action OnComplete { get; set; }
6 years ago
public Action OnError { get; set; }
public string Path { get; set; }
6 years ago
public long? ContentLength { get; set; }
public FileShare FileShare { get; set; }
6 years ago
public StaticResultOptions()
{
ResponseHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
FileShare = FileShare.Read;
6 years ago
}
}
public class StaticFileResultOptions : StaticResultOptions
{
}
}