Method: Mongrel::CGIWrapper#initialize
- Defined in:
- lib/mongrel/cgi.rb
#initialize(request, response, *args) ⇒ CGIWrapper
Takes an HttpRequest and HttpResponse object, plus any additional arguments normally passed to CGI. These are used internally to create a wrapper around the real CGI while maintaining Mongrel’s view of the world.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/mongrel/cgi.rb', line 42 def initialize(request, response, *args) @request = request @response = response @args = *args @input = request.body @head = {} @out_called = false @default_really_final=true super(*args) end |