Skip to content

Commit fff33b3

Browse files
committed
Add a section on grizzly provider
1 parent 98ed0a4 commit fff33b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ You can also mix Future with AsyncHandler to only retrieve part of the asynchron
9999
@Override
100100
public STATE onBodyPartReceived(HttpResponseBodyPart bodyPart) throws Exception {
101101
builder.append(new String(bodyPart.getBodyPartBytes()));
102-
return STATE.CONTINU
102+
return STATE.CONTINUE
103103
}
104104

105105
@Override
@@ -145,7 +145,10 @@ Async Http Client also support WebSocket by simply doing:
145145
}
146146
}).build()).get();
147147

148-
The library uses Java non blocking I/O for supporting asynchronous operations. The default asynchronous provider is build on top of Netty (http://www.jboss.org/netty), the Java NIO Client Server Socket Framework from JBoss, but the library exposes a configurable provider SPI which allows to easily plug in other frameworks.
148+
The library uses Java non blocking I/O for supporting asynchronous operations. The default asynchronous provider is build on top of Netty (http://www.jboss.org/netty), but the library exposes a configurable provider SPI which allows to easily plug in other frameworks like Grizzly (http://grizzly.java.net)
149+
150+
AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder().build();
151+
AsyncHttpClient client = new AsyncHttpClient(new GrizzlyAsyncHttpProvider(config), config);
149152

150153
Keep up to date on the library development by joining the Asynchronous HTTP Client discussion group
151154

0 commit comments

Comments
 (0)