Retrofit — Overview

Sachin Shelar
Sep 10, 2022

--

What is Retrofit?

The official website states, “Retrofit is a type-safe HTTP client for Java and Android”.

In detail, Retrofit transfers your HTTP API into a Java Interface. It means you need to declare a Java interface to represent your API.

Essential features of Retrofit are:

  1. Annotations are used to describe HTTP requests.
  2. Retrofit uses OkHttp as a networking layer and is built on top of it.
  3. Retrofit automatically serializes the JSON response using POJO. (using converter)
  4. Retrofit allows you to make both synchronous and asynchronous requests to APIs.
  5. It is highly customizable based on the requirement and use cases.

A Quick look at Retrofit.

--

--

Sachin Shelar
Sachin Shelar

Written by Sachin Shelar

Android | iOS | Flutter | React Native

No responses yet