opacapp / opacclient

[unmaintained] A Java client library and an Android app to access more than 1,000 public and scientific libraries from all over the world.
https://opacapp.net
MIT License
155 stars 61 forks source link

Switch to okhttp #470

Open johan12345 opened 7 years ago

johan12345 commented 7 years ago

We are currently using Apache HTTPClient for all HTTP requests done from libopac. This has some disadvantages:

We are planning to gradually switch all APIs to use OkHttp instead. This requires a large amount of testing, especially for the library systems that require peculiar types of HTTP requests.

Systems already migrated to OkHttp:

raphaelm commented 7 years ago

Do we know that we won't require the same SNI workarounds with OkHttp on older Android versions?

johan12345 commented 7 years ago

OkHttp says it supports SNI on Android 2.3 and above: https://github.com/square/okhttp/blob/master/okhttp/src/main/java/okhttp3/internal/platform/Platform.java#L40