Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ HttpClient Examples (Async)

- [Multiplexed HTTP/2 exchanges](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientHttp2ServerPush.java)

This example demonstrates handling of HTTP/2 message exchanges pushed by the server.
This example demonstrates handling of HTTP/2 message exchanges pushed by the server.

- [Client authentication](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientAuthentication.java)

Expand Down Expand Up @@ -82,4 +82,8 @@ This example demonstrates handling of HTTP/2 message exchanges pushed by the ser

- [Virtual HTTPS / SNI](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientSNI.java)

This example demonstrates how to use SNI to send requests to a virtual HTTPS endpoint using the async I/O.
This example demonstrates how to use SNI to send requests to a virtual HTTPS endpoint using the async I/O.

- [Unix domain sockets](https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/UnixDomainSocketAsync.java)

This example demonstrates how to connect to a local daemon (in this case, the Docker daemon) over a Unix domain socket. Note that this requires Java 17+. On older versions of Java, Unix domain sockets are only supported with [classic I/O](examples.md) and require an additional dependency on JUnixSocket.
6 changes: 5 additions & 1 deletion src/site/markdown/httpcomponents-client-5.6.x/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,8 @@ HttpClient Examples (Classic)

- [Virtual HTTPS / SNI](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientSNI.java)

This example demonstrates how to use SNI to send requests to a virtual HTTPS endpoint using the classic I/O.
This example demonstrates how to use SNI to send requests to a virtual HTTPS endpoint using the classic I/O.

- [Unix domain sockets](https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/UnixDomainSocket.java)

This example demonstrates how to connect to a local daemon (in this case, the Docker daemon) over a Unix domain socket. Note that this requires either Java 17+ or a dependency on [JUnixSocket](https://mvnrepository.com/artifact/com.kohlschutter.junixsocket/junixsocket-core).