About 51 results
Open links in new tab
  1. java - Using Retrofit in Android - Stack Overflow

    Here Retrofit will read your information from interface and under the hood it will create RestHandler according to meta-info your provided which actually will perform HTTP requests. Then under the …

  2. POST Multipart Form Data using Retrofit 2.0 including image

    Jan 2, 2016 · I am wondering what is the proper way to upload an image using Retrofit 2.0? Should I save it to disk first before uploading? P.S.: I have used retrofit for other Multipart request that does …

  3. 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, and …

  4. 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.

  5. how to write retrofit dependency in this libs format

    Jan 4, 2024 · Not able to add this dependency in build.gradle com.squareup.retrofit2:retrofit:2.9.0 I don't know how to write dependencies in this new gradle version. Tried Not able to do this implementation …

  6. android - Retrofit - Change BaseUrl - Stack Overflow

    Aug 6, 2016 · For some WebRequests, I must call the same API but on others, I must call it from a completely different BaseUrl. How do I change the Retrofit instance to therefore point to a different …

  7. 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 :

  8. Best practices of using Retrofit2 (multiple service)

    Dec 3, 2018 · Passing it to retrofit using retrofit.create (), which implements it for me, and then I have access to all of them using the functions from step #1 After looking at this, my question is: Is it a …

  9. java - Logging with Retrofit 2 - Stack Overflow

    Sep 11, 2015 · 1 Retrofit Log Retrofit's interceptor is a great feature which allow you work with http requests. There are two types of them: application and network interceptors. I would recommend to …

  10. How to POST raw whole JSON in the body of a Retrofit request?

    This question may have been asked before but no it was not definitively answered. How exactly does one post raw whole JSON inside the body of a Retrofit request? See similar question here. Or is t...