Package com.squareup.rack.servlet

Examples of com.squareup.rack.servlet.TestHttpServletRequest


  @Before public void setUp() {
    IRubyObject callable = Ruby.getGlobalRuntime()
        .evalScriptlet("proc { |env| [200, {'Content-Type' => 'text/plain'}, env.keys] }");

    RackEnvironmentBuilder envBuilder = new RackEnvironmentBuilder();
    TestHttpServletRequest request = TestHttpServletRequest.newBuilder().build();
    app = new JRubyRackApplication(callable);
    env = envBuilder.build(request);
  }
View Full Code Here

TOP

Related Classes of com.squareup.rack.servlet.TestHttpServletRequest

Copyright © 2018 www.massapicom. 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.