I would like to capture the full request (raw_request -- what went over the wire) for a given action without using a proxy.
I am aware of the debug_output method on the Class, and that might be part of the solution. But unclear on how to set it on a per request basis.
Consider the following ...
@response = HTTParty.post(@job.callback_url, body: @job.to_json)
notification = Notification.new
notification.response_body = @response.body
notification.response_code = @response.code
notification.request_body = ????
Thanks!
Jonathan