presto-jdbc/src/main/java/io/prestosql/jdbc/QueryExecutor.java/QueryExecutor/getServerInfo
class QueryExecutor:    public ServerInfo getServerInfo(URI server)
    {
        HttpUrl url = HttpUrl.get(server);
        if (url == null) {
            throw new ClientException("Invalid server URL: " + server);
        }
        url = url.newBuilder().encodedPath("/v1/info").build();

        Request request = new Request.Builder().url(url).build();

        JsonResponse<ServerInfo> response = JsonResponse.execute(SERVER_INFO_CODEC, httpClient, request);
        if (!response.hasValue()) {
            throw new RuntimeException(format("Request to %s failed: %s [Error: %s]", server, response, response.getResponseBody()));
        }
        return response.getValue();
    }