You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Demonstrate multi-address client in HTTP examples (#2689)
Motivation:
Some HTTP examples only use single-address client. It would be helpful to also provide multi-address client examples.
Modification:
- Create `DebuggingExampleUrlClient`
- Create `HttpUrlClientMutualTLS`
- Create `Http2PriorKnowledgeUrlClient`
- Create `HttpUrlClientWithAlpn`
Result:
Both single-address and multi-address clients are demonstrated in HTTP examples.
Copy file name to clipboardExpand all lines: servicetalk-examples/docs/modules/ROOT/pages/http/index.adoc
+10-4
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,8 @@ Extends the async "Hello World" example to demonstrate some useful features avai
90
90
91
91
* link:{source-root}/servicetalk-examples/http/debugging/src/main/java/io/servicetalk/examples/http/debugging/DebuggingExampleServer.java[DebuggingExampleServer] - the async `Hello World!`
92
92
server enhanced with debugging capabilities.
93
-
* link:{source-root}/servicetalk-examples/http/debugging/src/main/java/io/servicetalk/examples/http/debugging/DebuggingExampleClient.java[DebuggingExampleClient.java] - the async `Hello World!` client enhanced with debugging capabilities.
93
+
* link:{source-root}/servicetalk-examples/http/debugging/src/main/java/io/servicetalk/examples/http/debugging/DebuggingExampleClient.java[DebuggingExampleClient.java] - the async `Hello World!` single-address client enhanced with debugging capabilities.
94
+
* link:{source-root}/servicetalk-examples/http/debugging/src/main/java/io/servicetalk/examples/http/debugging/DebuggingExampleUrlClient.java[DebuggingExampleUrlClient.java] - the async `Hello World!` multi-address client enhanced with debugging capabilities.
94
95
95
96
[#Timeout]
96
97
== Timeout
@@ -197,7 +198,8 @@ This example demonstrates how client and server can be configured to do mutual a
197
198
Using the following classes:
198
199
199
200
- link:{source-root}/servicetalk-examples/http/mutual-tls/src/main/java/io/servicetalk/examples/http/mutualtls/HttpServerMutualTLS.java[HttpServerMutualTLS] - A server that sets the trust manager and key manager, and requires client authentication.
200
-
- link:{source-root}/servicetalk-examples/http/mutual-tls/src/main/java/io/servicetalk/examples/http/mutualtls/HttpClientMutualTLS.java[HttpClientMutualTLS] - A client that sets the trust manager and key manager.
201
+
- link:{source-root}/servicetalk-examples/http/mutual-tls/src/main/java/io/servicetalk/examples/http/mutualtls/HttpClientMutualTLS.java[HttpClientMutualTLS] - A single-address client that sets the trust manager and key manager.
202
+
- link:{source-root}/servicetalk-examples/http/mutual-tls/src/main/java/io/servicetalk/examples/http/mutualtls/HttpUrlClientMutualTLS.java[HttpUrlClientMutualTLS] - A multi-address client that sets the trust manager and key manager when needed.
201
203
202
204
NOTE: This example uses the link:#blocking-aggregated[blocking + aggregated] API, as the TLS/SSL configuration API is
203
205
the same across all the HTTP APIs.
@@ -280,7 +282,9 @@ link:https://tools.ietf.org/html/rfc7540#section-3.4[HTTP/2 transport with Prior
0 commit comments