public Method

CgiRequest.body

The request body is an IO input stream. If the RAW_POST_DATA environment variable is already set, wrap it in a StringIO.

Source Code

# File action_controller/cgi_process.rb, line 66
def body
  if raw_post = env['RAW_POST_DATA']
    StringIO.new(raw_post)
  else
    @cgi.stdinput
  end
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.