Closed all-things-liquid closed 3 years ago
With 7449cecff89d14d660ac432181356cb461fd82f6 you should be able to do this:
const api = createApi({ accessKey: 'MY_ACCESS_KEY' });
api.topics.get({ topicIdOrSlug: 'foo' }).then(apiResponse => {
apiResponse.originalResponse.headers.get('content-type');
});
I recently upgraded to the 7.0.10 version of the package to get TypeScript typing. But I can't find a way to access response headers from API calls, since I only get an object of type ApiResponse.
I need to get access to rate limit information inside my code, and used to be able to do that with the 6.3.0 version:
Is there another way I can have access to this?