зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1573196 - Fixed GeckoWebExecutor documentation. r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D43086 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
b98ee8996d
Коммит
071f8e586c
|
@ -26,12 +26,12 @@ import org.mozilla.gecko.annotation.WrapForJNI;
|
|||
* <pre>
|
||||
* final GeckoWebExecutor executor = new GeckoWebExecutor();
|
||||
*
|
||||
* final GeckoResult<WebResponse> response = executor.fetch(
|
||||
* final GeckoResult<WebResponse> result = executor.fetch(
|
||||
* new WebRequest.Builder("https://example.org/json")
|
||||
* .header("Accept", "application/json")
|
||||
* .build());
|
||||
*
|
||||
* response.then(response -> {
|
||||
* result.then(response -> {
|
||||
* // Do something with response
|
||||
* });
|
||||
* </pre>
|
||||
|
|
Загрузка…
Ссылка в новой задаче