Allow request cancelation
sarahsnow1 opened this issue · 2 comments
sarahsnow1 commented
We can update HttpHandler#requestRoute
to return a Call
object (or wrapper around it) to support request cancellation:
https://square.github.io/okhttp/3.x/okhttp/
ecgreb commented
I would rather expose our own public API for request cancellation rather than directly using Call
. Upgrading OkHttp required a number of changes in the Mapzen SDK. Ideally upgrading this library's inner dependencies would not require changes to the public API nor any apps using it.
sarahlensing commented
I prefer that too