public void handleRequest(HttpRequest request) {
try {
HttpResponse response = request.createHttpResponse();
IRubyObject rubyReq = new RubyHttpRequest(ruby, requestMetaClass, request);
IRubyObject rubyRes = new RubyHttpResponse(ruby, responseMetaClass, response);
if (LOGGER.isDebugEnabled()) {
long start = System.nanoTime();
asyncwebDispatcher.callMethod("dispatch", new IRubyObject[] { rubyReq, rubyRes });
LOGGER.debug("AsyncWebDispatcher#dispatch(req, res) takes {} nanoseconds", System.nanoTime() - start);