lib/gemcache/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_dispatch/http/request.rb
# The request body is an IO input stream. If the RAW_POST_DATA environment
# variable is already set, wrap it in a StringIO.
The request body is an IO input stream. If the RAW_POST_DATA environment
variable is already set, wrap it in a StringIO.
The request body is an IO input stream . If the RAW_POST_DATA environment variable is already set wrap it in a StringIO .
def body
      if raw_post = @env['RAW_POST_DATA']
        raw_post.force_encoding(Encoding::BINARY) if raw_post.respond_to?(:force_encoding)
        StringIO.new(raw_post)
      else
        @env['rack.input']
      end
    end
def body if raw_post = @env [ 'RAW_POST_DATA' ] raw_post . force_encoding ( Encoding :: BINARY ) if raw_post . respond_to? ( :force_encoding ) StringIO . new ( raw_post ) else @env [ 'rack.input' ] end end
The request body is an IO input stream.
The request body is an IO input stream .