Method: ActionDispatch::Request#raw_post
- Defined in:
- lib/action_dispatch/http/request.rb
#raw_post ⇒ Object
Read the request body. This is useful for web services that need to work with raw requests directly.
353 354 355 356 357 358 |
# File 'lib/action_dispatch/http/request.rb', line 353 def raw_post unless has_header? "RAW_POST_DATA" set_header("RAW_POST_DATA", read_body_stream) end get_header "RAW_POST_DATA" end |