Skip to content

Return fetch request arguments within the response and responseError interceptors#55

Open
vincentp wants to merge 2 commits intomlegenhausen:developfrom
vincentp:develop
Open

Return fetch request arguments within the response and responseError interceptors#55
vincentp wants to merge 2 commits intomlegenhausen:developfrom
vincentp:develop

Conversation

@vincentp
Copy link
Copy Markdown

No description provided.

Comment thread README.md
},

response: function (response) {
response: function (response, request) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can access the request inside the response object. The same applies to the error on the responseError interceptor.

Copy link
Copy Markdown

@mahidhar4 mahidhar4 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ruifcnunes
But the body of request is already used we wouldn't be able to re-use it for any retry mechanism it would be better if we clone it and send it back so that dev's can extend it for further usage

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

Successfully merging this pull request may close these issues.

3 participants