Examples of RubyHttpResponse


Examples of net.sf.jruby.rails.asyncweb.ruby.RubyHttpResponse

    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.