src/main/java/com/ngrok/NgrokApiClient.java
<O> CompletionStage<O> sendRequest(HttpMethod method,
                                       String endpoint,
                                       Stream<Map.Entry<String, Optional<Object>>> queryParams,
                                       Stream<Map.Entry<String, Optional<Object>>> bodyParams,
                                       Optional<Class<O>> responseClass);
/**
     * Sends a request to the ngrok API.
     *
     * @param method the HTTP method to use
     * @param endpoint the endpoint (under the base URI) to send the request to
     * @param queryParams any query parameters to send along with the request (parameters with an empty
     *                    value will not be sent)
     * @param bodyParams any JSON body parameters to send along withthe request (parameters with an empty
     *                   value will not be sent). If this stream is empty, no body should be sent.
     * @param responseClass an optional type for a Jackson-annotated POJO representing the HTTP response body
     * @param <O> the return type for the API response
     * @return a future encapsulating the response type (will be {@link Void} for empty responses)
     */
Sends a request to the ngrok API.
@param method the HTTP method to use
@param endpoint the endpoint (under the base URI) to send the request to
@param queryParams any query parameters to send along with the request (parameters with an empty
value will not be sent)
@param bodyParams any JSON body parameters to send along withthe request (parameters with an empty
value will not be sent). If this stream is empty, no body should be sent.
@param responseClass an optional type for a Jackson-annotated POJO representing the HTTP response body
@param  the return type for the API response
@return a future encapsulating the response type (will be  Void for empty responses)
Sends a request to the ngrok API . @param method the HTTP method to use @param endpoint the endpoint ( under the base URI ) to send the request to @param queryParams any query parameters to send along with the request ( parameters with an empty value will not be sent ) @param bodyParams any JSON body parameters to send along withthe request ( parameters with an empty value will not be sent ) . If this stream is empty no body should be sent . @param responseClass an optional type for a Jackson - annotated POJO representing the HTTP response body @param the return type for the API response @return a future encapsulating the response type ( will be Void for empty responses )
<O> CompletionStage<O> sendRequest(HttpMethod method,
                                       String endpoint,
                                       Stream<Map.Entry<String, Optional<Object>>> queryParams,
                                       Stream<Map.Entry<String, Optional<Object>>> bodyParams,
                                       Optional<Class<O>> responseClass);
< O > CompletionStage < O > sendRequest ( HttpMethod method , String endpoint , Stream < Map . Entry < String , Optional < Object > > > queryParams , Stream < Map . Entry < String , Optional < Object > > > bodyParams , Optional < Class < O > > responseClass ) ;
Sends a request to the ngrok API.
Sends a request to the ngrok API .