mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-05 21:39:18 +00:00
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}"]
|
||||
----
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user