Skip to content

Commit fc653a9

Browse files
committed
Merge pull request AsyncHttpClient#1145 from anuragkapur/master
Minor correction to readme code sample
2 parents 1e0ac60 + 23a7306 commit fc653a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Then in your code you can simply do
3535
import org.asynchttpclient.*;
3636
import java.util.concurrent.Future;
3737

38-
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
38+
AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient();
3939
Future<Response> f = asyncHttpClient.prepareGet("http://www.example.com/").execute();
4040
Response r = f.get();
4141
```
@@ -48,7 +48,7 @@ You can also accomplish asynchronous (non-blocking) operation without using a Fu
4848
import org.asynchttpclient.*;
4949
import java.util.concurrent.Future;
5050

51-
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
51+
AsyncHttpClient asyncHttpClient = new DefaultAsyncHttpClient();
5252
asyncHttpClient.prepareGet("http://www.example.com/").execute(new AsyncCompletionHandler<Response>(){
5353

5454
@Override

0 commit comments

Comments
 (0)