This tutorial is going to show how to post JSON with Retrofit, a type-safe HTTP client for Android and Java. 1. Library Dependency We’re going to use Retrofit 2.3.0 for all examples presented in this tutorial. And To use Retrofit… Continue Reading →
This tutorial is going to cover about how to post with Retrofit 2, a type-safe HTTP client for Android and Java applications. We’re going to get though some popular use cases and examples where Retrofit 2 can be used such… Continue Reading →
This tutorial is going to cover how to use Netflix Feign with Spring Cloud and how to override default configurations, declare additional configurations for Feign client in Spring Cloud as well. 1. Preparation 1.1. The RESTful Web Service Let’s assume… Continue Reading →
This tutorial is going to cover about how to post with OkHttp, an HTTP & HTTP/2 client for Android and Java applications. We’re going to get though some popular use cases and examples such as how to post a string,… Continue Reading →
1. Introduction This tutorial is going to cover about how to cache response with OkHttp, an HTTP & HTTP/2 client for Android and Java applications. Fetching resource over the network is both slow and expensive. Therefore, OkHttp provides us ability… Continue Reading →
1. Introduction This short tutorial is going to cover how to set timeouts with Unirest for Java, a simplified, lightweight HTTP request library built and maintained by Mashape. Unirest for Java allows us to set timeouts for its HTTP clients,… Continue Reading →
This short tutorial is going to cover about file uploading with Open Feign, a java to http client binder. 1. Preparation 1.1. REST API for file uploading Let’s assume that we have a RESTful web service which provides an API… Continue Reading →
This tutorial is going to cover shortly how to set timeout with OkHttp, an HTTP & HTTP/2 client for Android and Java applications, powered by Square. 1. Introduction One of the most popular issues of the client-server model is the… Continue Reading →
This tutorial is going to illustrate how to do basic authentication with Open Feign, a java to http client binder powered by OpenFiegn. 1. Overview In general, we will use the BasicAuthRequestInterceptor class, which is an interceptor that adds the… Continue Reading →
This tutorial will cover how to upload a file with OkHttp, an HTTP & HTTP/2 client for Android and Java applications, powered by Square. 1. Preparation 1.1. REST API for file uploading Let’s assume that we have a RESTful web… Continue Reading →
© 2025 HowToProgram — Powered by WordPress
Theme by Anders Noren — Up ↑