mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
22 lines
614 B
C#
22 lines
614 B
C#
namespace NzbDrone.Common.Http
|
|
{
|
|
public sealed class HttpAccept
|
|
{
|
|
public static readonly HttpAccept Rss = new HttpAccept("application/rss+xml, text/rss+xml, application/xml, text/xml");
|
|
public static readonly HttpAccept Json = new HttpAccept("application/json");
|
|
public static readonly HttpAccept Html = new HttpAccept("text/html");
|
|
|
|
public string Value { get; private set; }
|
|
|
|
public HttpAccept(string accept)
|
|
{
|
|
Value = accept;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Value;
|
|
}
|
|
}
|
|
}
|