instance method
raw_post
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
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_controller/request.rb, line 391
def raw_post
unless env.include? 'RAW_POST_DATA'
env['RAW_POST_DATA'] = body.read(content_length)
body.rewind if body.respond_to?(:rewind)
end
env['RAW_POST_DATA']
end
Defined in actionpack/lib/action_controller/request.rb line 391
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::AbstractRequest