File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ You can also mix Future with AsyncHandler to only retrieve part of the asynchron
73
73
import org.asynchttpclient.* ;
74
74
import java.util.concurrent.Future ;
75
75
76
- AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
76
+ AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient ();
77
77
Future<Integer > f = asyncHttpClient. prepareGet(" http://www.example.com/" ). execute(
78
78
new AsyncCompletionHandler<Integer > (){
79
79
@@ -100,7 +100,7 @@ which is something you want to do for large responses: this way you can process
100
100
import org.asynchttpclient.* ;
101
101
import java.util.concurrent.Future ;
102
102
103
- AsyncHttpClient c = new AsyncHttpClient ();
103
+ AsyncHttpClient c = new DefaultAsyncHttpClient ();
104
104
Future<String > f = c. prepareGet(" http://www.example.com/" ). execute(new AsyncHandler<String > () {
105
105
private ByteArrayOutputStream bytes = new ByteArrayOutputStream ();
106
106
You can’t perform that action at this time.
0 commit comments