See: Description
| Package | Description |
|---|---|
| com.azure.core.http.okhttp |
Package containing OkHttp HTTP client plugin for azure-core.
|
Azure Core OkHttp HTTP client is a plugin for the azure-core HTTP client API.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-okhttp</artifactId>
<version>1.6.2</version>
</dependency>
The following sections provide several code snippets covering some of the most common client configuration scenarios.
Create an OkHttp client using a connection timeout of 60 seconds and a read timeout of 120 seconds.
HttpClient client = new OkHttpAsyncHttpClientBuilder().build();
Create an OkHttp client that is using a proxy.
HttpClient client = new OkHttpAsyncHttpClientBuilder()
.proxy(new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("<proxy-host>", 8888)))
.build();
Get started with Azure libraries that are built using Azure Core.
If you encounter any bugs, please file issues via GitHub Issues or checkout StackOverflow for Azure Java SDK.
Azure SDKs for Java provide a consistent logging story to help aid in troubleshooting application errors and expedite their resolution. The logs produced will capture the flow of an application before reaching the terminal state to help locate the root issue. View the logging wiki for guidance about enabling logging.
For details on contributing to this repository, see the contributing guide.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)

Copyright © 2021 Microsoft Corporation. All rights reserved.