support deleting and canceling live tv recordings and timers

This commit is contained in:
Luke Pulverenti
2013-11-29 11:58:24 -05:00
parent 4892fb4e95
commit 235b838fbe
26 changed files with 280 additions and 81 deletions

View File

@@ -17,14 +17,19 @@ namespace MediaBrowser.ServerApplication.Native
/// <returns>HttpClient.</returns>
public static HttpClient GetHttpClient(bool enableHttpCompression)
{
return new HttpClient(new WebRequestHandler
var client = new HttpClient(new WebRequestHandler
{
CachePolicy = new RequestCachePolicy(RequestCacheLevel.Revalidate),
AutomaticDecompression = enableHttpCompression ? DecompressionMethods.Deflate : DecompressionMethods.None
})
{
Timeout = TimeSpan.FromSeconds(20)
};
client.DefaultRequestHeaders.Add("Connection", "Keep-Alive");
return client;
}
}
}