Top "Retrofit" questions

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

Retrofit 2 - Dynamic URL

With Retrofit 2, you can set a full URL in the annotation of a service method like : public interface APIService { @GET("…

android retrofit
How to log request and response body with Retrofit-Android?

I can't find relevant methods in the Retrofit API for logging complete request/response bodies. I was expecting some help …

android logging retrofit retrofit2
How to set timeout in Retrofit library?

I am using Retrofit library in my app, and I'd like to set a timeout of 60 seconds. Does Retrofit have …

java android timeout retrofit
Adding header to all request with Retrofit 2

Retrofit 2's documentation says: Headers that need to be added to every request can be specified using an OkHttp interceptor. …

java android header httprequest retrofit
How to get response as String using retrofit without using GSON or any other library in android

I am trying to get response from the following Api : https://api.github.com/users/username But I don't know …

android json parsing retrofit
Retrofit 2 - URL Query Parameter

I am using a query parameters to set the values needed by the Google Maps API. The issue is I …

java android retrofit retrofit2
CertPathValidatorException : Trust anchor for certificate path not found - Retrofit Android

I am creating an android application which uses https for communication with the server. I am using retrofit and OkHttp …

android ssl retrofit okhttp
Get nested JSON object with GSON using retrofit

I'm consuming an API from my android app, and all the JSON responses are like this: { 'status': 'OK', 'reason': 'Everything …

java android json gson retrofit
How to add headers to OkHttp request interceptor?

I have this interceptor that i add to my OkHttp client: public class RequestTokenInterceptor implements Interceptor { @Override public Response intercept(…

java android http-headers retrofit okhttp