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 →
1. Overview This tutorial is going to cover how to create a WebSocket client example with OkHttp, an HTTP & HTTP/2 client for Android and Java applications, powered by Square. 2. Preparation We’re going to use OkHttp3, version 3.5.0 for… 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 →
1. Overview This tutorial is going to illustrate how to download a file with OkHttp, an HTTP & HTTP/2 client for Android and Java applications, powered by Square. We can download a file synchronously and asynchronously with OkHttp. With asynchronous… Continue Reading →
In this tutorial, we’re going to show you an example about how to do Basic Authentication with OkHttp, an HTTP & HTTP/2 client for Android and Java applications, powered by Square. 1. Overview OkHttp can automatically retry unauthenticated requests forever…. Continue Reading →
© 2024 HowToProgram — Powered by WordPress
Theme by Anders Noren — Up ↑