Interface HttpService

All Known Implementing Classes:
HttpClientService, OkHttpService

public interface HttpService
An HTTP handling abstraction.
  • Method Details

    • send

      <T> CompletionStage<Response<T>> send(Request request, Response.BodyHandler<T> responseBodyHandler)
      Perform an asynchonous HTTP request.
      Type Parameters:
      T - the response type
      Parameters:
      request - the request
      responseBodyHandler - the response body handler
      Returns:
      the next stage of completion, containing the response