-
Notifications
You must be signed in to change notification settings - Fork 187
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
Add headers to response info #206
Comments
This indeed can be a good enhancement, I will look into it soon! |
played a bit with the code, here is possible way:
tested that and it works, but maybe you will find some other more abstract way |
Upvote! |
+1. Is there any workaround for this while the issue is still unresolved? |
Might be able to do something like this:
And maybe add an extension function to
Just ideas - haven't tested any of this. |
Hello. This is a request for adding functionality. I need to have access to the fields in the headers that come with this API since there are some important fields there, for example:
x-ratelimit-limit-requests: 3500
x-ratelimit-limit-tokens: 180000
x-ratelimit-remaining-requests: 3499
x-ratelimit-remaining-tokens: 179972
x-ratelimit-reset-requests: 17ms
x-ratelimit-reset-tokens: 9ms
I need to have access to this headers data or some other headers. It would be great if you could add additional functions, for example, and they would return Pair<OUR REGULAR RESPONSE, HEADERS>. and will be located next to the usual functions. function1(): Response and function1Extra(): Pair<Response, Headers>.
The text was updated successfully, but these errors were encountered: