Category Http Client

Reactive HTTP Client With Spring 5 WebClient

This article is going to cover about Spring 5 WebClient, a non-blocking, reactive client for HTTP requests with Reactive Streams back pressure. 1. Introduction To Spring 5 WebClient The WebClient is a non-blocking, reactive HTTP client which has been introduced… Continue Reading →

Configure Basic Authentication on Unirest for Java

1. Introduction This short tutorial is going to cover how to configure basic authentication on Unirest for Java, a simplified, lightweight HTTP request library built and maintained by Mashape. 2. Configure Basic Authentication on Unirest for Java 2.1. Library dependency… Continue Reading →

How to Post with Retrofit 2

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 →

Using Netflix Feign with Spring Cloud

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 →

How to Post with OkHttp

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 →

How to Cache Response with OkHttp

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 →

Set Timeouts with Unirest for Java

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 →

File Uploading with Open Feign

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 →

WebSocket Client Example with OkHttp

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 →

Set Timeout with OkHttp

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 →

« Older posts

© 2024 HowToProgram — Powered by WordPress

Theme by Anders NorenUp ↑

NewsletterSubscribe To Learn More