@@ -25,7 +25,7 @@ Then in your code you can simply do ([Javadoc](http://sonatype.github.com/async-
25
25
import java.util.concurrent.Future ;
26
26
27
27
AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
28
- Future<Response > f = asyncHttpClient. prepareGet(" http://www.ning.com/ " ). execute();
28
+ Future<Response > f = asyncHttpClient. prepareGet(" http://www.ning.com/" ). execute();
29
29
Response r = f. get();
30
30
```
31
31
@@ -38,7 +38,7 @@ You can also accomplish asynchronous (non-blocking) operation without using a Fu
38
38
import java.util.concurrent.Future ;
39
39
40
40
AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
41
- asyncHttpClient. prepareGet(" http://www.ning.com/ " ). execute(new AsyncCompletionHandler<Response > (){
41
+ asyncHttpClient. prepareGet(" http://www.ning.com/" ). execute(new AsyncCompletionHandler<Response > (){
42
42
43
43
@Override
44
44
public Response onCompleted (Response response ) throws Exception {
@@ -63,7 +63,7 @@ You can also mix Future with AsyncHandler to only retrieve part of the asynchron
63
63
import java.util.concurrent.Future ;
64
64
65
65
AsyncHttpClient asyncHttpClient = new AsyncHttpClient ();
66
- Future<Integer > f = asyncHttpClient. prepareGet(" http://www.ning.com/ " ). execute(
66
+ Future<Integer > f = asyncHttpClient. prepareGet(" http://www.ning.com/" ). execute(
67
67
new AsyncCompletionHandler<Integer > (){
68
68
69
69
@Override
@@ -90,7 +90,7 @@ which is something you want to do for large responses: this way you can process
90
90
import java.util.concurrent.Future ;
91
91
92
92
AsyncHttpClient c = new AsyncHttpClient ();
93
- Future<String > f = c. prepareGet(" http://www.ning.com/ " ). execute(new AsyncHandler<String > () {
93
+ Future<String > f = c. prepareGet(" http://www.ning.com/" ). execute(new AsyncHandler<String > () {
94
94
private ByteArrayOutputStream bytes = new ByteArrayOutputStream ();
95
95
96
96
@Override
0 commit comments