Apologize for not specifying, I am using javascript and node.js basically I make a request with axios
i.e const object = await axios.get(´https://api.twitch.tv/helix/streams/metadata’, configObject);
and then I derive the headers from that request:
const rate_limit = object.headers;
and this is where I am stuck, I want to propegate the headers from that request into an object that I can use for all my requests.
Something like const APILimits = { //limits object defined here }
and then use that object in all my requests so I can keep track of rate limits
I hope this makes sense I will revert if clarification is needed