Top "Okhttp" questions

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

SocketTimeoutException in Retrofit

I am trying to POST request to server for fetch data but sometime It's occure SocketTimeoutException! I used Ok3Client …

android retrofit okhttp socket-timeout-exception
UnknownHostException: name or service not known

I'm attempting to return some data from an API using OkHttpClient in com.squareup.okhttp. I've run into a few …

java exception host okhttp
OkHttp/Retrofit default timeout

I was wondering how many seconds should I set to my retrofit client. How many seconds should I use as …

android timeout httprequest retrofit okhttp
How to add parameters to api (http post) using okhttp library in Android

In my Android application, I am using okHttp library. How can I send parameters to the server(api) using the …

android okhttp
Retrofit and OkHttp basic authentication

I am trying to add basic authentication (username and password) to a Retrofit OkHttp client. This is the code I …

android retrofit2 okhttp
why use Retrofit when we have OkHttp

with OkHttp we can make HTTP request then get response from server OkHttpClient client = new OkHttpClient(); Request request = new Request.…

java android retrofit okhttp
Okhttp response callbacks on the main thread

I have created a helper class to handle all of my http calls in my app. It is a simple …

android multithreading okhttp
Getting Header from Response (Retrofit / OkHttp Client)

I am using Retrofit with the OkHttp Client and Jackson for Json Serialization and want to get the header of …

android json jackson retrofit okhttp
Retrofit Uploading multiple images to a single key

I am using Retrofit to upload images to my server. Here I need to upload multiple images for a single …

android multipartform-data retrofit2 okhttp
How to specify a default user agent for okhttp 2.x requests

I am using okhttp 2.0 in my Android app and didn't find a way to set some common User Agent for …

android square okhttp