зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f86b6c2086
Коммит
1e40c5074f
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче