Usage
Client configuration
Configure the client using system properties or environment variables:
System properties take precedence over environment variables.
[!TIP] Don’t create more than one client in the same application. Each client has a connection pool and thread pools, which are more efficient to share between requests.
Modifying configuration
To temporarily use a modified client configuration, while reusing the same connection and thread pools, callwithOptions() on any client or service:
withOptions() method does not affect the original client or service.
Asynchronous execution
The default client is synchronous. To switch to asynchronous execution, call theasync() method:
CompletableFutures.