Top "Okhttp3" questions

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

How to resolve D8 warning: D8: Type `org.conscrypt.Conscrypt` was not found

/Volumes/SSD/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.10.0/7ef0f1d95bf4c0b3ba30bbae25e0e562…

okhttp3
How to fix Expected Android API level 21+ but was 19 in Android

In my application i want get data from server, for get connect to server i used Retrofit, OkHttp. But when …

android kotlin retrofit2 okhttp3
OkHttp3 SocketTimeoutException (in Android app) -- How to set read timeout for asynchronous request?

I keep getting a java.net.SocketTimeoutException when attempting an OkHttp3 asynchronous Get. This suggests that I haven't set the …

java android asynchronous okhttp3 socket-timeout-exception
How to retrieve cookie from response retrofit, okhttp?

I am trying to retrieve Cookies values from API response for maintaining the backend session by setting cookie value to …

android cookies retrofit2 session-cookies okhttp3
OkHttpClient throws exception after upgrading to OkHttp3

I'm using following lines of code to add a default header to all of my requests sent using Retrofit2: private …

android retrofit okhttp retrofit2 okhttp3
mocking Retrofit response calls with Call not working

I'm mocking the response of the APIService. Unfortunately it is not working, I have to send back a Call but …

android retrofit2 okhttp3
Android Retrofit 2, differences between addInterceptor & addNetworkInterceptor for editing responses

I've been trying to implement an interceptor ( OkHttp 3.2 & Retrofit 2 ) for editing the JSON response before is returned as response. …

android interceptor retrofit2 okhttp3
ProtocolException: Expected ':status' header not present

Retrofit network calls fails with a Protocol Exception suddenly in a working app. The app was working till yesterday and …

android retrofit retrofit2 okhttp3 protocolexception
read failed: EBADF (Bad file descriptor) while reading from InputStream Nougat

With the recent changes in android N, I had to upgrade my code to use FileProvider to fetch images/files …

android retrofit2 multipart okhttp3 android-fileprovider
How Retrieve Response Body with RxAndroid and Retrofit 2?

I am using Retrofit 2 (beta 4), and I was looking to move from using the standard Call response to the RxAndroid …

android rx-java rx-android retrofit2 okhttp3