Package com.inrupt.client.spi
Interface HttpService
- All Known Implementing Classes:
HttpClientService
,OkHttpService
public interface HttpService
An HTTP handling abstraction.
-
Method Summary
Modifier and TypeMethodDescription<T> CompletionStage<Response<T>>
send
(Request request, Response.BodyHandler<T> responseBodyHandler) Perform an asynchonous HTTP request.
-
Method Details
-
send
Perform an asynchonous HTTP request.- Type Parameters:
T
- the response type- Parameters:
request
- the requestresponseBodyHandler
- the response body handler- Returns:
- the next stage of completion, containing the response
-