Connecting to API is a very natural step to building complex systems. Java did not provide good utility for connecting to API until Java 11. Before Java 11 Java had HttpURLConnection which is not feature-rich & verbose.
In this article, we will discuss HttpURLConnection ( Java 8 and Before ) and HttpClient( Java 11 and beyond) to connect API endpoints.
Share this post
Building Simple Http Client in Java
Share this post
Connecting to API is a very natural step to building complex systems. Java did not provide good utility for connecting to API until Java 11. Before Java 11 Java had HttpURLConnection which is not feature-rich & verbose.
In this article, we will discuss HttpURLConnection ( Java 8 and Before ) and HttpClient( Java 11 and beyond) to connect API endpoints.
Read More:
https://asyncq.com/building-simple-http-client-in-java