Top "Okhttp" questions

An HTTP+HTTP/2 client for Android and Java applications.

How to tell OkHttpClient to ignore cache and force refresh from server?

In my android application, I am using Retrofit with OkHttpClient with caching enabled to access some APIs. Some of our …

android caching retrofit okhttp
How to handle pagination in retrofit

I'm building an app using retrofit. Everything's working swimmingly, but I'm worried about the size of my API requests and …

android api-design retrofit okhttp
Using OKHttp, what is the difference between synchronous request in AsyncTask and OKhttp Asynchronous request?

OKHttp supports both synchronous and asynchronous api. If I want to issue an async request, I can: Use a AsyncTask, …

android android-asynctask network-programming okhttp
How cancel task with retrofit and rxjava

I have rest api. @Get("/serveraction") public Observable<String> myRequest(@Query("Data") String data); I know, that okhttp …

retrofit reactive-programming rx-java okhttp
how to solve java.lang.NoClassDefFoundError: okio.Okio?

I have an app that work very well but some times when I add some class and code to my …

android web-services okhttp okio
OkHttp MockWebServer fails to accept connections when restarted

I'm using the OkHttp MockWebServer to mock my server responses for unit tests. It works great for the first test, …

java android unit-testing okhttp mockwebserver
Unexpected char 0x0a in header value when using OkHttp client in Android

When sending a Base64 encoded string as header using Http, I am getting error response as Unexpected char 0x0a …

java android base64 retrofit okhttp
How to use http/2 with Okhttp on Android devices?

I'M testing a site that supports HTTP/2,like this, and I try to use okhttp to send the request: OkHttpClient …

android http okhttp http2
Is Retrofit+Okhttp using httpCaching as a default in Android?

I use retrofit and okhttp in one of our applications. I can't really find a good explanation for the default …

android http http-caching retrofit okhttp
okhttp new JsonObject from Response

I am trying to use OKHttp and https://github.com/hongyangAndroid/okhttp-utils to implement Login function, but I don't know …

android okhttp androidhttpclient