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:
Simone Bordet 2018-06-08 09:25:07 +02:00
parent 3932b11e64
commit 23fa0303a6
1 changed files with 2 additions and 3 deletions

View File

@ -150,7 +150,7 @@ You can impose a total timeout for the request/response conversation in the same
[source, java, subs="{sub-order}"]
----
Request request = httpClient.newRequest("http://domain.com/path")
httpClient.newRequest("http://domain.com/path")
.timeout(3, TimeUnit.SECONDS)
.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}"]
----
ContentResponse response = httpClient
.newRequest("http://domain.com/path")
httpClient .newRequest("http://domain.com/path")
.send(new Response.Listener.Adapter()
{
@Override