mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
Replaced Uri with HttpUri.
This commit is contained in:
parent
7c54fa70d7
commit
23871503a2
29 changed files with 356 additions and 111 deletions
|
@ -10,9 +10,9 @@ namespace NzbDrone.Common.Http
|
|||
{
|
||||
public class HttpRequest
|
||||
{
|
||||
public HttpRequest(string uri, HttpAccept httpAccept = null)
|
||||
public HttpRequest(string url, HttpAccept httpAccept = null)
|
||||
{
|
||||
UrlBuilder = new UriBuilder(uri);
|
||||
Url = new HttpUri(url);
|
||||
Headers = new HttpHeader();
|
||||
AllowAutoRedirect = true;
|
||||
Cookies = new Dictionary<string, string>();
|
||||
|
@ -28,8 +28,7 @@ namespace NzbDrone.Common.Http
|
|||
}
|
||||
}
|
||||
|
||||
public UriBuilder UrlBuilder { get; private set; }
|
||||
public Uri Url { get { return UrlBuilder.Uri; } }
|
||||
public HttpUri Url { get; set; }
|
||||
public HttpMethod Method { get; set; }
|
||||
public HttpHeader Headers { get; set; }
|
||||
public byte[] ContentData { get; set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue