mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-18 23:48:35 +02:00
24 lines
612 B
C#
24 lines
612 B
C#
using System;
|
|
|
|
namespace NzbDrone.Common.Http
|
|
{
|
|
public sealed class HttpAccept
|
|
{
|
|
public static readonly HttpAccept Rss = new HttpAccept("application/rss+xml, text/rss+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;
|
|
}
|
|
}
|
|
}
|