Hey all, I have a project that I want to log to the text log and record in the database the raw request and the raw response when using HTTParty.
@response.request.instance_variable_get(:@raw_request)
This is pretty gross and obviously not supported by the gem itself, plus it also a drawback in that I can't record the raw request I'm about to make until after I've completed the request.
Is there a way to generate it ahead of time and with a better syntax than using instance_variable_get? Should I just look into another gem (if so, which one?)? Should I add the functionality to httparty and make a pull request?
Thanks in advance for the responses!
-Mark