Bug 1683160 - Add a note on WebResponse.body to documentation r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D100704
This commit is contained in:
owlishDeveloper 2021-01-04 19:28:36 +00:00
Родитель f86b6c2086
Коммит 1e40c5074f
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -53,6 +53,9 @@ public class WebResponse extends WebMessage {
/**
* An {@link InputStream} containing the response body, if available.
* Attention: the stream must be closed whenever the app is done with it,
* even when the body is ignored.
* Otherwise the connection will not be closed until the stream is garbage collected
*/
public final @Nullable InputStream body;