Examples of RubyIORackInput


Examples of com.github.kevwil.aspen.io.RubyIORackInput

    public DefaultRackEnvironment( final Ruby runtime, final Request request )
    {
        _runtime = runtime;
        _request = request;
        _stream = new ChannelBufferInputStream( _request.getBody() );
        RubyIORackInput input = new RubyIORackInput( _runtime );
        input.setBuffer( _request.getBody() );
        setRackInput( input );
    }
View Full Code Here

Examples of org.jruby.jubilee.impl.RubyIORackInput

        // it set the empty content flag when passing the header
//        if ((te != null && te.equals("chunked")) ||
//                ((contentLength = request.headers().get(Const.Vertx.CONTENT_LENGTH)) != null && !contentLength.equals("0"))) {
        final ByteBuf bodyBuf = Unpooled.buffer(0, Integer.MAX_VALUE);
        final AtomicBoolean eof = new AtomicBoolean(false);
        input = new RubyIORackInput(runtime, rackIOInputClass, request, bodyBuf, eof);

        request.dataHandler(new Handler<Buffer>() {
            @Override
            public void handle(Buffer buffer) {
                bodyBuf.writeBytes(buffer.getByteBuf());
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.