I would like to ask if this code after execution is auto-closing the connection. Also if it fail and crash, is it still going to close connection?
HttpClient.newHttpClient().send(
HttpRequest.newBuilder()
.uri(URI.create("url_website"))
.timeout(Duration.ofSeconds(5))
.GET()
.build(),
HttpResponse.BodyHandlers.ofString())
.body()