Skip to content

Commit 779070a

Browse files
committed
Fix for AsyncHttpClient#132 - README.md examples use "http://www.ning.com/ "
1 parent 2f6549d commit 779070a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Then in your code you can simply do ([Javadoc](http://sonatype.github.com/async-
2525
import java.util.concurrent.Future;
2626

2727
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();
2929
Response r = f.get();
3030
```
3131

@@ -38,7 +38,7 @@ You can also accomplish asynchronous (non-blocking) operation without using a Fu
3838
import java.util.concurrent.Future;
3939

4040
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>(){
4242

4343
@Override
4444
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
6363
import java.util.concurrent.Future;
6464

6565
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(
6767
new AsyncCompletionHandler<Integer>(){
6868

6969
@Override
@@ -90,7 +90,7 @@ which is something you want to do for large responses: this way you can process
9090
import java.util.concurrent.Future;
9191

9292
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>() {
9494
private ByteArrayOutputStream bytes = new ByteArrayOutputStream();
9595

9696
@Override

0 commit comments

Comments
 (0)