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. 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 →
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 →
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 →
This tutorial covers how to develop some Java REST client examples using OkHttp, an HTTP & HTTP/2 client for Android and Java applications. 1. Preparation Let’s assume that we have an RESTful web service with several API as below. And… Continue Reading →
© 2024 HowToProgram — Powered by WordPress
Theme by Anders Noren — Up ↑