json_api_client icon indicating copy to clipboard operation
json_api_client copied to clipboard

Allow to get raw http body

Open gottfrois opened this issue 9 years ago • 1 comments

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?

gottfrois avatar Jun 01 '16 13:06 gottfrois

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

jsamos avatar Jun 01 '16 17:06 jsamos