@Override
    public <T> Future<T> submit(ClientInvocation request, boolean buffered,
                                @Nullable InvocationCallback<T> callback, ResultExtractor<T> extractor) {

        // replaced CompletableFuture.whenComplete() with CompletableFuture.handle()
        // due to performance issue described at
        // <a href="https://github.com/line/armeria/pull/1440">#1440</a>.
        return submit(request, buffered, extractor, null)
                .handle((response, throwable) -> {
                    if (callback != null) {
                        if (throwable != null) {
                            callback.failed(throwable);
                        } else {
                            callback.completed(response);
                        }
                    }
                    return response;
                });
    }
Armeria does not allow to access the HostnameVerifier from WebClient API.
This functionality must be achieved by configuring {@link com.linecorp.armeria.client.WebClientBuilder}.
@throws UnsupportedOperationException always
resteasy/src/main/java/com/linecorp/armeria/client/resteasy/ArmeriaJaxrsClientEngine.java