instance method
raw_post
Ruby on Rails 7.2.3
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 341
def raw_post
unless has_header? "RAW_POST_DATA"
set_header("RAW_POST_DATA", read_body_stream)
end
get_header "RAW_POST_DATA"
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 341
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request