mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 23:57:11 -07:00
Fixed: Refactored the Indexer architecture to support non-rss indexers.
This commit is contained in:
parent
22c9bc402f
commit
5e62c2335f
57 changed files with 2196 additions and 1470 deletions
|
@ -6,14 +6,19 @@ namespace NzbDrone.Common.Http
|
|||
{
|
||||
public class HttpRequest
|
||||
{
|
||||
|
||||
private readonly Dictionary<string, string> _segments;
|
||||
|
||||
public HttpRequest(string url)
|
||||
public HttpRequest(string url, HttpAccept httpAccept = null)
|
||||
{
|
||||
UriBuilder = new UriBuilder(url);
|
||||
Headers = new HttpHeader();
|
||||
_segments = new Dictionary<string, string>();
|
||||
AllowAutoRedirect = true;
|
||||
|
||||
if (httpAccept != null)
|
||||
{
|
||||
Headers.Accept = httpAccept.Value;
|
||||
}
|
||||
}
|
||||
|
||||
public UriBuilder UriBuilder { get; private set; }
|
||||
|
@ -38,6 +43,7 @@ namespace NzbDrone.Common.Http
|
|||
public string Body { get; set; }
|
||||
public NetworkCredential NetworkCredential { get; set; }
|
||||
public bool SuppressHttpError { get; set; }
|
||||
public bool AllowAutoRedirect { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue