Everything I actually learned about Camping was by reading the source
code as it is quite a feat of engineering.
And I learned a ton about metaprogramming too. So it can be quite
interesting. :-)
On 4/16/2012 12:41 PM, Nokan Emiro wrote:
> Actually env[] works with mongrel also, not just fcgi or passenger.
> (No, it's not a typo: env, and not ENV. But I'm sure ENV works too.)
Yes, env inside Camping is the same @env (it's just an attr_accessor).
Same for @body, @request, @method, @status etc:
https://github.com/camping/camping/blob/75f1144b7c9f53948d887d331a4f583a3b86a74f/lib/camping-unabridged.rb#L257
Hmmm, maybe I should read through this commented version of source code.
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list