New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows you to use jruby-rack in embedded environments #53
Conversation
…ironment to make jruby-rack more amenable to running in embedded servlet situations
- Create an abstract rack filter which is responsible for calling the dispatcher and converting the req & resp into a rack env. - Implementations of rack filter for embedded and servlet environments - Include a getServerInfo method on the rack context for CGI's SERVER_INFORMATION. - Remove unnecessary jetty example (in a different gem - WIP)
… sure we don't refer to the default servlet rack context everywhere (use the interface)
…us make sure it sets the servlet_rack_context
…comment to describe why it is there in the first place
Cool, I'll have a go on the weekend, girlfriend permitting. On Wed, Sep 7, 2011 at 10:30 PM, Nick Sieger
|
@nicobrevin can you explain further about this patch? is it just a massive refactor? which problem are you fixing with it? |
Yeah, sure. It's not a huge refactor, just pulling out the servlet env dependency jruby-rack is geared towards apps that are deployed within a servlet The set of classes i've added allow you to use jruby-rack as more of a I created a basic example, Essay over! Does that make sense? On Fri, Sep 9, 2011 at 8:16 AM, David Calavera
|
Yes, that makes more sense. Thank you! |
@nicobrevin could you add a Servlet to the embed package as you did with the filter. I think it would be more coherent if we had both. |
Merged it!! I've also added a servlet under the embed packaged. Thank you!! |
Oh ok, thanks!
|
I'm sure you know all about this one! Anyway, I think it is ready now.