-
Notifications
You must be signed in to change notification settings - Fork 176
Extracts configurable networking layer. #56
base: master
Are you sure you want to change the base?
Conversation
OkHttp looks very nice. I'm considering to switch over using it as default. I've added a factory to create an engine for each loader thread. Not quite sure how to fix the tests though |
@hjanetzek OkHttp is great. I've found it to be much more reliable and provide better error messaging than HttpURLConnection. If you push your changes to a branch I can work on getting the tests passing again. |
@hjanetzek oh I see the branch now... I'll take a look at this today. |
|
* Extracts HttpEngine interface. * Uses LwHttp as default networking client. * Implements alternate networking client using OkHttp.
- use replacement string for tilePath - move 'low-level' formatTilePath to LwHttp - implement LwHttpFactory
I've updated my branch. Are you ok with the api? |
Looks good to me. I especially like passing a We may want to consider transitioning |
@hjanetzek I pulled your latest changes and rebased onto master. Also fixed a compile error coming from a change in the jeo API. |
@ecgreb thanks, maybe I should host the latest working jeo and gdx snapshots.. I was already testing the merge in my repository, now pushed to opensciencemap/master. It's no problem to change HttpEngine to be abstract when needed. |
Great thanks! We are now using the latest version of vtm with okhttp in our app. |
@ecgreb would you mind updating okhttp to 2.0? |
@hjanetzek this is definitely on our road map. Hopefully I'll have some time to work on it soon. |
http://square.github.io/okhttp/