Add upnp configuration

This commit is contained in:
Luke Pulverenti
2014-02-25 23:38:21 -05:00
parent 7767580a3b
commit 13563b6047
21 changed files with 383 additions and 158 deletions

View File

@@ -71,7 +71,9 @@ namespace MediaBrowser.Common.Net
public string RequestContent { get; set; }
public bool BufferContent { get; set; }
public HttpRequestCachePolicy CachePolicy { get; set; }
private string GetHeaderValue(string name)
{
string value;
@@ -89,7 +91,15 @@ namespace MediaBrowser.Common.Net
EnableHttpCompression = true;
BufferContent = true;
CachePolicy = HttpRequestCachePolicy.None;
RequestHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
}
}
public enum HttpRequestCachePolicy
{
None = 1,
Validate = 2
}
}