Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Okhttp 3.5 #1171

Merged
merged 4 commits into from
Jan 3, 2017
Merged

Okhttp 3.5 #1171

merged 4 commits into from
Jan 3, 2017

Conversation

tallytalwar
Copy link
Member

We were 1 full version behind with OKHTTP. We have been using Okhttp2.5, while they have released some major upgrades to their library. This PR moves us to latest and greatest from OKHttp.

Note: This is an API breaking change.
HttpHandler does not have a setCache method. A new parameterized constructor is added to HttpHandler to set the cache. This is because of the API change(s) in OkHttp3.0 and beyond.

Copy link
Contributor

@ecgreb ecgreb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me although I have not tested or tried to upgrade to okhttp3 in other libs as of yet.

I'm going to work on updating in https://github.com/pelias/pelias-android-sdk and https://github.com/mapzen/on-the-road_android.

May have additional comments depending on how that goes.

Copy link
Member

@matteblair matteblair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked over this and made a few tweaks, looks good!

tallytalwar and others added 4 commits January 3, 2017 17:00
This is an API breaking change.

- Removed HttpHandler::setCache
- Adds a parameterized constructor to set HttpHandler cache
response provides a way to get raw bytes now.
 - Delegate default constructor
 - Compare URL string instead of 'tag' for cancellation
 - onCancel cancels all calls with the given URL, in case more than one does
@tallytalwar tallytalwar merged commit 88d3a6c into master Jan 3, 2017
@tallytalwar tallytalwar deleted the okhttp-3.5 branch January 3, 2017 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants