You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would also be useful to have the response code available as well.
However, both of these are in-fact breaking changes, since Blanket::Response forwards almost all methods to the parsed response struct, it would break an API with a headers property in the top-level json object., that would no longer work for any such user, thereby breaking their code.
Perhaps the right way to go is to give direct access to the response object, then you can get whatever headers you want from that and I could get the response code from there too.
Some API use header to return the current page offset, for example Shopify Rest API
Blanket doesn't provide access to header, it'd be easy to add the
headers
on the Blanket::Response object here without breaking changehttps://github.com/inf0rmer/blanket/blob/master/lib/blanket/wrapper.rb#L97
Would you support such improvement ?
The text was updated successfully, but these errors were encountered: