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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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