Interface Client


public interface Client
An API for an HTTP client.
  • Method Details

    • send

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

      Client session(Session session)
      Create a session-scoped client.
      Parameters:
      session - the session manager
      Returns:
      the session-scoped client