CompletableFuture request()

in src/main/java/com/spotify/github/v3/clients/GitHubClient.java [566:573]


  <T> CompletableFuture<T> request(final String path, final TypeReference<T> typeReference) {
    final Request request = requestBuilder(path).build();
    log.debug("Making request to {}", request.url().toString());
    return call(request)
        .thenApply(
            response ->
                json().fromJsonUncheckedNotNull(responseBodyUnchecked(response), typeReference));
  }