json_api_client
json_api_client copied to clipboard
Allow to get raw http body
Thanks for the great work!
I was looking for a way to get the raw http body. I'm using the gem to fetch my jsonapi API but i'd like to forward the http body to my front-end application directly.
Any way I can get that payload, out of a ResultSet maybe?
i know the raw body is copied here https://github.com/chingor13/json_api_client/blob/105e9d079c92c4b540d0dc2752eb01317ac4f9b0/lib/json_api_client/middleware/parse_json.rb
and there is an attr_reader :faraday on the connection https://github.com/chingor13/json_api_client/blob/105e9d079c92c4b540d0dc2752eb01317ac4f9b0/lib/json_api_client/connection.rb#L4
not sure if that would allow u access somehow