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.
|
|
|
|
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 JsonCharset = new HttpAccept("application/json; charset=utf-8");
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|