-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] Add a way to retrieve response headers #87
Comments
Can you explore if there is a way to get additional info like this after calling an SDK method. It is possible this would require backwards incompatible changes but it would be good to see how we can achieve it. Please make some design suggestions for how this could work from an SDK usage point of view. |
It looks like Stripe (who we have used for inspiration before) decided to do it like this: stripe/stripe-python#371 I am not sure I agree with calling it |
In my opinion,
|
Add a way to get response headers after getting a response from an API call. We need to be able to get information from headers like
Idempotent-Replayed
after returning a response in the SDK.Additionally, it may be a good idea to make all "response data" including the raw response body available to developers who use the SDK. Currently only the resource is returned in a response (or an error is thrown). It could be a good idea to allow developers to introspect the actual response object for additional info (such as headers, response body and other details that the
requests
library may include after running an http request).The text was updated successfully, but these errors were encountered: