Method: ActionDispatch::Request#raw_post

Defined in:
actionpack/lib/action_dispatch/http/request.rb

#raw_postObject

Read the request body. This is useful for web services that need to work with raw requests directly.



348
349
350
351
352
353
# File 'actionpack/lib/action_dispatch/http/request.rb', line 348

def raw_post
  unless has_header? "RAW_POST_DATA"
    set_header("RAW_POST_DATA", read_body_stream)
  end
  get_header "RAW_POST_DATA"
end