|
|
@ -187,7 +187,7 @@ public class WebClient {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private <T> HttpResponse<T> handleRequest(boolean async, HttpRequest hreq, HttpResponse.BodyHandler<T> bodyHandler, Consumer<HttpResponse<T>> respHandler) throws Exception {
|
|
|
|
private <T> HttpResponse<T> handleRequest(boolean async, HttpRequest hreq, HttpResponse.BodyHandler<T> bodyHandler, Consumer<HttpResponse<T>> respHandler) throws Exception {
|
|
|
|
Log.get(getClass()).debug("Sending request");
|
|
|
|
Log.get(getClass()).debug("Sending request:\n{} {}", hreq.method(), hreq.uri());
|
|
|
|
if (!async) {
|
|
|
|
if (!async) {
|
|
|
|
HttpResponse<T> resp = client().send(hreq, bodyHandler);
|
|
|
|
HttpResponse<T> resp = client().send(hreq, bodyHandler);
|
|
|
|
Log.get(getClass()).debug("Received response");
|
|
|
|
Log.get(getClass()).debug("Received response");
|
|
|
|