static private Method

Dispatcher.new_cgi(output)

CGI.new plus exception handling. CGI#read_multipart raises EOFError if body.empty? or body.size != Content-Length and raises ArgumentError if Content-Length is non-integer.

Source Code

# File dispatcher.rb, line 99
def new_cgi(output)
  failsafe_response(output, '400 Bad Request') { CGI.new }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.