CGI
The beginning of a complete wrapper around Unicorn’s internal HTTP processing system but maintaining the original Ruby CGI module. Use this only as a crutch to get existing CGI based systems working. It should handle everything, but please notify us if you see special warnings. This work is still very alpha so we need testers to help work out the various corner cases.
this maps CGI header names to HTTP header names
these are stripped out of any keys passed to CGIWrapper.header function
some of these are common strings, but this is the only module using them and the reason they’re not in Unicorn::Const
Takes an a Rackable environment, plus any additional CGI.new arguments These are used internally to create a wrapper around the real CGI while maintaining Rack/Unicorn’s view of the world. This this will NOT deal well with large responses that take up a lot of memory, but neither does the CGI nor the original CGIWrapper from Mongrel…
The header is typically called to send back the header. In our case we collect it into a hash for later usage. This can be called multiple times to set different cookies.
Originally generated with the Darkfish Rdoc Generator 2, modified by wrongdoc.
We love to hear from you!