Top "Retrofit" questions

Retrofit is a type-safe REST client for Android and Java by Square, Inc.

Retrofit - Too many follow-up requests: 21

I'm using retrofit to make requests. I've got following error: java.net.ProtocolException: Too many follow-up requests: 21 The code is …

android retrofit okhttp cookiemanager
Retrofit POST request w/ Basic HTTP Authentication: "Cannot retry streamed HTTP body"

I'm using Retrofit to do a basic POST request, and I'm providing a basic @Body for the request. @POST("/rest/…

android http-authentication retrofit okhttp
Retrofit - android.os.NetworkOnMainThreadException

I am using Retrofit 2 to get json and parse it to POJO. My purpose is getting one value of that …

java android retrofit retrofit2
Retrofit throwing IllegalArgumentException exception for asynchronous FormUrlEncoded DELETE call

I'm trying to make an asynchronous POST and DELETE which is form url encoded using Retrofit in Android 4.4 Here is …

android post http-post retrofit http-delete
Retrofit 2 - Elegant way of adding headers in the api level

My Retrofit 2 (2.0.2 currently) client needs to add custom headers to requests. I'm using an Interceptor to add these headers to …

java header annotations retrofit retrofit2
@DELETE method is not supporting(Non-body HTTP method cannot contain @Body or @TypedOutput.)

@DELETE("/job/deletejob") Observable<JobDeleteResponseModel> jobDelete( @Body JobDeleteRequestModel model); am getting this error: Non-body HTTP method cannot contain @…

retrofit rx-java
Retrofit - Okhttp client How to cache the response

I'm trying to cache the response of http calls done by Retrofit(v 1.9.0) with OkHttp(2.3.0). It always made the network …

java android retrofit cache-control okhttp
Retrofit 2 removes characters after hostname from base url

I'm using Retrofit to access a RESTful api. The base url is: http://api.example.com/service This is the …

android retrofit
Retrofit - Intercept responses globally

I'd like to intercept all responses received by the retrofit engine, and scan for HTTP error code, for example error 403. …

android retrofit okhttp
How to change body in OkHttp Response?

I'm using retrofit. To catch response i'm using Interceptor: OkHttpClient okHttpClient = new OkHttpClient(); okHttpClient.interceptors().add(myinterceptor); here is code …

java android retrofit interceptor okhttp