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 @@ -35,7 +35,7 @@ Then in your code you can simply do
35
35
import org.asynchttpclient.* ;
36
36
import java.util.concurrent.Future ;
37
37
38
- AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
38
+ AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient ();
39
39
Future<Response > f = asyncHttpClient. prepareGet(" http://www.example.com/" ). execute();
40
40
Response r = f. get();
41
41
```
@@ -48,7 +48,7 @@ You can also accomplish asynchronous (non-blocking) operation without using a Fu
48
48
import org.asynchttpclient.* ;
49
49
import java.util.concurrent.Future ;
50
50
51
- AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
51
+ AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient ();
52
52
asyncHttpClient. prepareGet(" http://www.example.com/" ). execute(new AsyncCompletionHandler<Response > (){
53
53
54
54
@Override
You can’t perform that action at this time.
0 commit comments