Package com.inrupt.client
Interface Client
public interface Client
An API for an HTTP client.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
An API for an HTTP client builder. -
Method Summary
Modifier and TypeMethodDescription<T> CompletionStage<Response<T>>
send
(Request request, Response.BodyHandler<T> responseBodyHandler) Perform an HTTP request.Create a session-scoped client.
-
Method Details
-
send
Perform an HTTP request.- Type Parameters:
T
- the response handler type- Parameters:
request
- the requestresponseBodyHandler
- the response body handler- Returns:
- the next stage of completion, containing the response
-
session
Create a session-scoped client.- Parameters:
session
- the session manager- Returns:
- the session-scoped client
-