Azure Core JDK HTTP plugin library for Java - version 1.0.0-beta.14
This is an azure-core HTTP client that makes use of the asynchronous HttpClient that was made generally available as part of JDK 11.
Getting started
Prerequisites
- A Java Development Kit (JDK), version 12 or later.
Adding the package to your product
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-http-jdk-httpclient</artifactId>
<version>1.0.0-beta.14</version>
</dependency>
Key concepts
Examples
The following sections provide several code snippets covering some of the most common client configuration scenarios.
Create a Simple Client
Create a HttpClient.
HttpClient client = new JdkHttpClientBuilder().build();
Create a HttpClient using a connection timeout of 60 seconds.
HttpClient client = new JdkHttpClientBuilder().connectionTimeout(Duration.ofSeconds(60)).build();
Create a Client with Proxy
Create a HttpClient that is using a proxy.
HttpClient client = new JdkHttpClientBuilder()
.proxy(new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("<proxy-host>", 8888)))
.build();
Next steps
Get started with Azure libraries that are built using Azure Core.
Troubleshooting
If you encounter any bugs, please file issues via GitHub Issues or checkout StackOverflow for Azure Java SDK.
Enabling Logging
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.
Contributing
For details on contributing to this repository, see the contributing guide.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기