Fixes #2632 - Wrong return type for Request.send(Response.CompleteListener listener) method in documentation for Jetty 9.4.x.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
3932b11e64
commit
23fa0303a6
|
@ -150,7 +150,7 @@ You can impose a total timeout for the request/response conversation in the same
|
||||||
|
|
||||||
[source, java, subs="{sub-order}"]
|
[source, java, subs="{sub-order}"]
|
||||||
----
|
----
|
||||||
Request request = httpClient.newRequest("http://domain.com/path")
|
httpClient.newRequest("http://domain.com/path")
|
||||||
.timeout(3, TimeUnit.SECONDS)
|
.timeout(3, TimeUnit.SECONDS)
|
||||||
.send(result -> { /* Your logic here */ });
|
.send(result -> { /* Your logic here */ });
|
||||||
----
|
----
|
||||||
|
@ -346,8 +346,7 @@ Jetty's HTTP client will invoke the `onContent()` method zero or more times (unt
|
||||||
|
|
||||||
[source, java, subs="{sub-order}"]
|
[source, java, subs="{sub-order}"]
|
||||||
----
|
----
|
||||||
ContentResponse response = httpClient
|
httpClient .newRequest("http://domain.com/path")
|
||||||
.newRequest("http://domain.com/path")
|
|
||||||
.send(new Response.Listener.Adapter()
|
.send(new Response.Listener.Adapter()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue