RFR: 8327991: Improve HttpClient documentation with regard to reclaiming resources

Daniel Fuchs dfuchs at openjdk.org
Wed Mar 13 15:06:13 UTC 2024


On Wed, 13 Mar 2024 12:25:44 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> Please find here a doc-only change that tries to better document how resources allocated by the HttpClient are reclaimed.
> The `@implNote` in the HttpClient class level API documentation is extended to document what happens if you don't explicitly close the HttpClient. The note is refactored to introduce the notion of streaming or publishing bodies. BodySubscribers and BodyHandlers now have links that link back to the HttpClient API note, as well as identifying methods that return publishing or streaming body implementations.

A draft CSR can be seen here: https://bugs.openjdk.org/browse/JDK-8328100
Diff of the doc changes will be pasted into the CSR after this PR is reviewed. Let's agree on the wording here first.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18270#issuecomment-1994609716


More information about the net-dev mailing list