lib/action_dispatch/http/request.rb
# Read the request \body. This is useful for web services that need to
# work with raw requests directly.
Read the request \body. This is useful for web services that need to
work with raw requests directly.
Read the request \ body . This is useful for web services that need to work with raw requests directly .
def raw_post
      unless @env.include? 'RAW_POST_DATA'
        @env['RAW_POST_DATA'] = body.read(@env['CONTENT_LENGTH'].to_i)
        body.rewind if body.respond_to?(:rewind)
      end
      @env['RAW_POST_DATA']
    end
def raw_post unless @env . include? 'RAW_POST_DATA' @env [ 'RAW_POST_DATA' ] = body . read ( @env [ 'CONTENT_LENGTH' ] . to_i ) body . rewind if body . respond_to? ( :rewind ) end @env [ 'RAW_POST_DATA' ] end
Read the request \body.
Read the request \ body .