Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Conditional request behaviour

Hi,
Thanks for the tip!
I had a chance to play around with this today and the caching strategy via OkHttp worked for me. 

----------------------------------------------------------------------

Message: 1
Date: Wed, 23 Mar 2016 10:12:15 +0100
From: Jon Ander Pe?alba <jonan88@xxxxxxxxx>
To: Matthias Sohn <matthias.sohn@xxxxxxxxx>
Cc: Denis Yuen <Denis.Yuen@xxxxxxxxxx>, "egit-dev@xxxxxxxxxxx"
        <egit-dev@xxxxxxxxxxx>
Subject: Re: [egit-dev] Conditional request behaviour
Message-ID:
        <CAK4Dkr4vpHCd79JSUB5JR_QXgdOU4zeyAZmL9QPjJu7TkeU-rQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi,

I'm using org.eclipse.egit.github.core extensively on Android [1] and I'm
the main contributor this days.
I've had no need to change the current implementation, I'm simply
extending GitHubClient
and overriding the createConnection method to use OkHttp [2]. OkHttp adds
quite a few cache features out of the box, and if you want more control,
you can override configureRequest.

Regards,


[1] https://github.com/jonan/ForkHub
[2]
https://github.com/jonan/ForkHub/blob/master/app/src/main/java/com/github/mobile/DefaultClient.java
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/egit-dev/attachments/20160323/5bb7caf2/attachment.html>

Back to the top