github Azure/azure-sdk-for-java azure-core-http-okhttp_1.11.0

latest releases: azure-identity-broker_1.1.7, azure-identity_1.14.1, spring-cloud-azure-dependencies_5.18.0...
2 years ago

1.11.0 (2022-06-30)

Features Added

  • Added ability to track progress by passing ProgressReporter in the Context. For example:
    HttpClient httpClient = new OkHttpAsyncHttpClientBuilder().build();
    ProgressReporter progressReporter = ProgressReporter.withProgressListener(progress -> System.out.println(progress));
    Context context = Contexts.empty().setHttpRequestProgressReporter(progressReporter).getContext();
    HttpRequest request = new HttpRequest(
        HttpMethod.PUT, new URL("http://example.com"), new HttpHeaders(), BinaryData.fromString("sample body"))
    httpClient.send(request, context).subscribe();

Other Changes

  • Added synchronous implementation of HttpClient.sendSync.

Dependency Updates

  • Upgraded azure-core from 1.29.1 to 1.30.0.
  • Upgraded OkHttp from 4.9.2 to 4.10.0.

Don't miss a new azure-sdk-for-java release

NewReleases is sending notifications on new releases.