File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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
3535import org.asynchttpclient.* ;
3636import java.util.concurrent.Future ;
3737
38- AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
38+ AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient ();
3939Future<Response > f = asyncHttpClient. prepareGet(" http://www.example.com/" ). execute();
4040Response r = f. get();
4141```
@@ -48,7 +48,7 @@ You can also accomplish asynchronous (non-blocking) operation without using a Fu
4848import org.asynchttpclient.* ;
4949import java.util.concurrent.Future ;
5050
51- AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
51+ AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient ();
5252asyncHttpClient. prepareGet(" http://www.example.com/" ). execute(new AsyncCompletionHandler<Response > (){
5353
5454 @Override
You can’t perform that action at this time.
0 commit comments