new RequestTargetHost(),
new RequestConnControl(),
new RequestUserAgent(),
new RequestExpectContinue()});
// Create client-side HTTP protocol handler
HttpAsyncClientProtocolHandler protocolHandler = new HttpAsyncClientProtocolHandler();
// Create client-side I/O event dispatch
final IOEventDispatch ioEventDispatch = new DefaultClientIODispatch(protocolHandler, params);
// Create client-side I/O reactor
IOReactorConfig config = new IOReactorConfig();
config.setIoThreadCount(1);