Skip to content

Commit 0f629d0

Browse files
committed
Change sample code in readme
- AsyncHttpClient is an interface. Instantiate with concrete implementation instead.
1 parent 1e0ac60 commit 0f629d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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
```

0 commit comments

Comments
 (0)