Skip to content
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

Way to access full request and response object #55

Open
techgyani opened this issue Jan 25, 2019 · 1 comment
Open

Way to access full request and response object #55

techgyani opened this issue Jan 25, 2019 · 1 comment

Comments

@techgyani
Copy link

techgyani commented Jan 25, 2019

Current Behavior

In case of success, request function simply returns response body in JSON format.

Expected Behaviour

It should return response body and response headers. So that I have control whether to make next API call if limit is reached. The reason I am asking for this because your APIs return a very important header. x-rate-limit: token:..... 1/2000 reset=3600s, key:...... 1/2000 reset=3600s which is critical for not hitting API limit.

Your Environment

  • Node version: 10.14.0
@kwelch-eb
Copy link
Contributor

Thank you for the request. We agree with the need for this feature. We are looking into the most optimal way to implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants