39 HttpResponseSpec
send(HttpRequestSpec request)
throws IOException, InterruptedException;
41 default HttpResponseSpec
get(
final URI uri)
throws IOException, InterruptedException {
42 return send(HttpRequestSpec.get(uri).build());
45 <T> T
sendJson(HttpRequestSpec request, TypeReference<T> typeReference)
throws IOException, InterruptedException;
47 <T> T
sendJson(HttpRequestSpec request, Class<T> type)
throws IOException, InterruptedException;
50 default void close() throws Exception {