From 0fc43be7de1760a2734f88f7f81e6da2ea935c11 Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Thu, 10 Aug 2023 09:58:53 +0200 Subject: [PATCH] The HttpServerResponse close method closes the HTTP connection, it can be misleading as there are better API to interact with the current request/connection lifecycle which are HttpServerResponse#reset and HttpConnection#close. This commit deprecates the close method of HtttpServerResponse. --- src/main/java/io/vertx/core/http/HttpServerResponse.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/io/vertx/core/http/HttpServerResponse.java b/src/main/java/io/vertx/core/http/HttpServerResponse.java index 97639e6bb15..75f9e6a51aa 100644 --- a/src/main/java/io/vertx/core/http/HttpServerResponse.java +++ b/src/main/java/io/vertx/core/http/HttpServerResponse.java @@ -464,7 +464,10 @@ default HttpServerResponse sendFile(String filename, long offset, Handler