Project Description
Enough HttpClientCachingExtensions allows you to store the response of a HttpClient call according to the server's caching information.
Enough Software
An Enough Software project.

Usage

HttpClientExtensions helps you to cache your response automatically and retrieve it from the file storage.

using Enough.Http.Cache;

private async void doHttpGetAsync()
{
    HttpClient client = new HttpClient();
    // you only need to configure the cache once in a lifetime of your app:
    client.ConfigureCacheAsync(ApplicationData.Current.TemporaryFolder, cacheSizeInKilobytes: 5 * 1024);
            
    HttpResponseMessage responseMessage = await client.GetCachedAsync("http://enough.de");
}


For more information please refer to the documentation

NuGet

Enough.HttpClientExtensions is available on NuGet!

Last edited Oct 7, 2013 at 12:44 PM by enoughrob, version 8