utils/src/main/java/com/github/taucher2003/appenders/utils/WebRequester.java
/**
     * Adds a request to the underlying {@link WebRequestExecutor}
     *
     * @param request the request which should be queued
     * @return a {@link CompletableFuture} which will complete with the response body as string
     */
Adds a request to the underlying  WebRequestExecutor
@param request the request which should be queued
@return a  CompletableFuture which will complete with the response body as string
Adds a request to the underlying WebRequestExecutor @param request the request which should be queued @return a CompletableFuture which will complete with the response body as string
public CompletableFuture<String> request(Request request) {
        CompletableFuture<String> future = new CompletableFuture<>();
        DataPair<Request, CompletableFuture<String>> pair = new DataPair<>(request, future);
        if (executor.addToQueue(pair)) {
            return future;
        }
        future.completeExceptionally(new RejectedExecutionException("Request has not been added to queue"));
        return future;
    }
public CompletableFuture < String > request ( Request request ) { CompletableFuture < String > future = new CompletableFuture < > ( ) ; DataPair < Request , CompletableFuture < String > > pair = new DataPair < > ( request , future ) ; if ( executor . addToQueue ( pair ) ) { return future ; } future . completeExceptionally ( new RejectedExecutionException ( "Request has not been added to queue" ) ) ; return future ; }
Adds a request to the underlying {@link WebRequestExecutor}
 @param request the request which should be queued
 @return a {@link CompletableFuture} which will complete with the response body as string
Adds a request to the underlying { @link WebRequestExecutor } @param request the request which should be queued @return a { @link CompletableFuture } which will complete with the response body as string