You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/09/25 13:15:03 UTC
svn commit: r1809625 -
/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java
Author: olegk
Date: Mon Sep 25 13:15:03 2017
New Revision: 1809625
URL: http://svn.apache.org/viewvc?rev=1809625&view=rev
Log:
Corrected quick start example
Modified:
httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java
Modified: httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java?rev=1809625&r1=1809624&r2=1809625&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java (original)
+++ httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/examples/org/apache/http/examples/nio/client/QuickStart.java Mon Sep 25 13:15:03 2017
@@ -117,19 +117,19 @@ public class QuickStart {
@Override
public void completed(final HttpResponse response3) {
latch2.countDown();
- System.out.println(request2.getRequestLine() + "->" + response3.getStatusLine());
+ System.out.println(request3.getRequestLine() + "->" + response3.getStatusLine());
}
@Override
public void failed(final Exception ex) {
latch2.countDown();
- System.out.println(request2.getRequestLine() + "->" + ex);
+ System.out.println(request3.getRequestLine() + "->" + ex);
}
@Override
public void cancelled() {
latch2.countDown();
- System.out.println(request2.getRequestLine() + " cancelled");
+ System.out.println(request3.getRequestLine() + " cancelled");
}
});