About 21,500,000 results
Open links in new tab
  1. How to log request and response body with Retrofit-Android?

    Add Logging to Retrofit 2 While developing your app and for debugging purposes it’s nice to have a log feature integrated to show request and response information.

  2. android - Retrofit 2 - Dynamic URL - Stack Overflow

    Sep 14, 2015 · With Retrofit 2, you can set a full URL in the annotation of a service method like :

  3. Newest 'retrofit' Questions - Stack Overflow

    Oct 16, 2025 · I am using Retrofit, OkHttp, Kotlin coroutines to make HTTP requests. When the server returns an unsuccessful result (e.g., 404), I throw a custom exception, which is a …

  4. java - why use Retrofit when we have OkHttp - Stack Overflow

    Aug 27, 2016 · 49 Retrofit vs. OkHttp The reason is simple: OkHttp is a pure HTTP/SPDY client responsible for any low-level network operation, caching, request and response manipulation, …

  5. POST Multipart Form Data using Retrofit 2.0 including image

    Jan 2, 2016 · 25 I used Retrofit 2.0 for my register users, send multipart/form File image and text from register account In my RegisterActivity, use an AsyncTask

  6. java - Logging with Retrofit 2 - Stack Overflow

    Sep 11, 2015 · That's all of the Logging trick ;) And I would like to share you with the tutorial I learned a lot there. They have a bunch of great post talking about almost everything related to …

  7. Elegant way of handling error using Retrofit + Kotlin Flow

    Jun 2, 2021 · 15 I have a favorite way of doing network request on Android (using Retrofit). It looks like this:

  8. How to make https request with ssl certificate in Retrofit

    Jun 11, 2015 · How to make https request with ssl certificate in Retrofit Asked 10 years, 7 months ago Modified 3 years, 10 months ago Viewed 60k times

  9. Retrofit2 Authorization - Global Interceptor for access token

    Mar 3, 2020 · This way of adding a header only works when 'token' is a compile time constant. Java's annotation rules and such. The documetation gives you another way to include a …

  10. How should I handle "No internet connection" with Retrofit on …

    Dec 26, 2013 · 49 With Retrofit 2, we use an OkHttp Interceptor implementation to check for network connectivity ahead of sending the request. If no network, throw an exception as …