Making HTTP requests

Before we can start making requests, we need to build a Retrofit object that will be used to create services. For this purpose, we will create a class, called RetrofitYahooServiceFactory, to create a Retrofit object and then service interface objects that will be used to make queries.

The following examples assume that in the end, we want to query this URL:

At first look, it may seem a bit too convoluted, but by taking everything apart we will show how Retrofit can help us to make HTTP requests in this case.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.49.247