Simple play icon Course

Java Fundamentals: HttpClient

by Sander Mak

With Java's HttpClient API you can easily perform HTTP calls. It's a modern API supporting HTTP/1.1, HTTP/2, and WebSockets. This course shows how to work with HttpClient in a practical manner, and also explores some advanced features.

What you'll learn

It used to be that performing HTTP calls in Java meant relying on an external library like Apache HttpClient. Since Java 11, a modern HTTP client is now part of the core platform. In this course, Java Fundamentals: HttpClient, you will gain the ability to work with this HttpClient API. First, you will learn to use HttpClient in a synchronous and asynchronous manner, including the use of CompletableFuture. Next, you will discover how to configure and use HttpClient in different scenarios, focusing on secure communication as well. Finally, you will explore some of the more advanced features of HttpClient, such as HTTP/2 Server Push, WebSocket communication, and Reactive Streams integration. When you're finished with this course, you will have the skills and knowledge of the HttpClient API needed to use it effectively in your own applications.

About the author

Sander is Director of Technology at Picnic —the Dutch online grocery scale-up— building Java-based systems at scale. He also is a Java Champion and author of the O'Reilly book 'Java 9 Modularity' (see As an avid conference speaker, Sander loves sharing knowledge, also through his blog at and as Pluralsight instructor.

Ready to upskill? Get started