Hi jax-rs users,
I am curious why Response does not implement Closeable.
That would allow all sorts of neat uses, in particular
try-with-resources:
try (Response resp = httpClient.target(…).get()) {
// use resp
} // resp closed!
It may seem like a very small issue, but does impact
usability in a non-trivial way.
I didn’t see a clear answer on the mailing list.
Hopefully someone can clarify.
Thanks!
Steven