Azure Core Netty HTTP plugin library for Java - Version 1.7.1
Azure Core Netty HTTP client is a plugin for the
azure-core HTTP client API.
- A Java Development Kit (JDK), version 8 or later.
Include the package
<dependency> <groupId>com.azure</groupId> <artifactId>azure-core-http-netty</artifactId> <version>1.7.1</version> </dependency>
The following sections provide several code snippets covering some of the most common client configuration scenarios.
Create a Simple Client
Create a Netty Http client that uses port 80 and has no proxy.
HttpClient client = new NettyAsyncHttpClientBuilder().build();
Create a Client with Proxy
Create a Netty Http client that is using a proxy.
HttpClient client = new NettyAsyncHttpClientBuilder() .proxy(new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("<proxy-host>", 8888))) .build();
Get started with Azure libraries that are built using Azure Core.
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.
- 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