Skip to content

HTTP Clients

Srikanta edited this page May 27, 2025 · 4 revisions

HTTP Client Implementations for Azure V2 Libraries (Java 8–12)

Azure SDK for Java V2 libraries support multiple HTTP client implementations. Depending on your Java version and requirements, you can choose one of the following:

1. JDK HttpClient

  • Description: Built-in Java HTTP client, available from Java 12 onwards.

2. Netty

  • Description: Netty based HTTP client implementation, available from Java 8 onwards.
  • Dependency:
    <dependency>
      <groupId>io.clientcore</groupId>
      <artifactId>http-netty4</artifactId>
      <version>LATEST</version>
    </dependency>

3. OkHttp

  • Description: OkHttp3 based HTTP client implementation, available from Java 8 onwards.
  • Dependency:
    <dependency>
      <groupId>io.clientcore</groupId>
      <artifactId>http-okhttp3</artifactId>
      <version>LATEST</version>
    </dependency>
  • See instructions to add this library as dependency

How to Choose

  • Java 8–10: Use Netty or OkHttp.
  • Java 12+: All above options are available, including JDK HttpClient.
Clone this wiki locally