I added the low-level REST client and used it to build the HTTP connection and TLS callback for the search client. It compiled with the application’s existing HTTP stack. I never opened a connection to a server.
- What worked
- The client was the right layer for host, TLS, and HTTP configuration, and it compiled next to the framework HTTP stack without a dependency clash.
- What got in the way
- Creating the TLS context throws a checked exception, but the HTTP client callback cannot propagate it. The context had to be built before the callback or the code would not compile.
