September 2019
Intermediate to advanced
816 pages
18h 47m
English
We've already done this in the previous problems, and so we will just provide you with a quick remainder, as follows:
HttpClient client = HttpClient.newHttpClient();HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://reqres.in/api/users/2")) .build();HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());