instance method
raw_post
Ruby on Rails 3.1.12
Since v3.0.20Signature
raw_post()
Read the request \body. This is useful for web services that need to work with raw requests directly.
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 200
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
Defined in actionpack/lib/action_dispatch/http/request.rb line 200
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request