-
Notifications
You must be signed in to change notification settings - Fork 240
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
Okhttp 3.5 #1171
Conversation
b6a9af8
to
951eb53
Compare
There was a problem hiding this 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.
951eb53
to
3c16542
Compare
There was a problem hiding this 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!
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
3c16542
to
4bead5c
Compare
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 asetCache
method. A new parameterized constructor is added toHttpHandler
to set the cache. This is because of the API change(s) in OkHttp3.0 and beyond.