SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

HTTPCLIENT / NOTES</>↗
HttpClient25 May 2025

How do I use Java 11 HttpClient with HTTP/2 protocol?

The HttpClient introduced in Java 11 provides an easy-to-use mechanism for sending HTTP requests, and it supports HTTP/2 out of the box. To utilize the HTTP/2 protocol with Java 11’s HttpClient, you simply need to set the version to HttpClient.Version.HTTP_2 while building the client. Here’s how you can use it: Step-by-Step Example Below is an […]

Wayan · 3 min read
HTTPCLIENT / NOTES</>↗
HttpClient24 May 2025

How do I use Java 11 HttpClient in a multithreaded environment?

When using the Java 11 HttpClient in a multithreaded environment, you need to ensure it is used in a thread-safe and efficient manner. Thankfully, the HttpClient introduced in Java 11 is designed to be thread-safe and can be shared among multiple threads without additional synchronization. Here are the important points about using HttpClient in a […]

Wayan · 6 min read
HTTPCLIENT / NOTES</>↗
HttpClient24 May 2025

How do I monitor performance and latency of Java 11 HTTP requests?

Monitoring the performance and latency of Java 11 HTTP requests is essential when utilizing the java.net.http package introduced with the new Java 11 HttpClient API. It helps identify bottlenecks, optimize network calls, and ensure efficient resource usage for your application. Here’s how you can do it: 1. Measure Latency Using Timestamps You can manually measure […]

Wayan · 5 min read
HTTPCLIENT / NOTES</>↗
HttpClient23 May 2025

How do I retry failed requests using Java 11 HttpClient?

Retrying failed requests using Java 11’s HttpClient involves implementing a custom retry mechanism. Java 11’s HttpClient doesn’t provide native support for automatic retries, but you can build a retry mechanism into your application by wrapping the logic in a loop. Here’s how you can do it step by step: 1. Define a Retry Mechanism You’ll […]

Wayan · 3 min read
HTTPCLIENT / NOTES</>↗
HttpClient23 May 2025

How do I handle errors and exceptions in Java 11 HttpClient?

In Java 11, the HttpClient API provides a flexible way to handle HTTP requests and responses. When dealing with errors and exceptions, there are several strategies and patterns you can use to ensure your application can handle unexpected issues effectively while making HTTP calls. 1. Exception Types in Java 11 HttpClient Here are some common […]

Wayan · 5 min read
HTTPCLIENT / NOTES</>↗
HttpClient22 May 2025

How do I chain asynchronous calls using Java 11 HttpClient and CompletableFuture?

Chaining asynchronous calls using Java 11’s HttpClient and CompletableFuture can be achieved by leveraging the reactive capabilities of CompletableFuture. The sendAsync method of HttpClient supports asynchronous processing, and you can chain multiple calls together using methods like thenApply, thenCompose, or thenAccept. Here’s a step-by-step example: Key Concepts Used: CompletableFuture: Allows for async processing and chaining […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.