Implement AutoCloseable in SimpleHTTP util (#11060)

Co-authored-by: Stian Thorgersen <stianst@gmail.com>
This commit is contained in:
Justin Stephenson
2022-08-29 02:09:51 -04:00
committed by GitHub
parent f0397f33b4
commit 0e89f07d5a

View File

@@ -317,7 +317,7 @@ public class SimpleHttp {
return new UrlEncodedFormEntity(urlParameters, StandardCharsets.UTF_8);
}
public static class Response {
public static class Response implements AutoCloseable {
private final HttpResponse response;
private int statusCode = -1;