You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Redaxios documentation refers us to the Axios documentation but that's not correct for some features. In the case of response.headers if we were to follow the Axios documentation to retrieve say Content-Disposition it would look like this:
response.headers['Content-Disposition']
However, redaxios has forwarded the fetch api response interface that is like so:
response.headers.get('Content-Disposition')
It would be nice to have better documentation that points out the differences between Axios and Redaxios and further highlights that redaxios is definitely not a drop-in replacement for axios.
The text was updated successfully, but these errors were encountered:
jonyyz
changed the title
Support response.headers
Improve documentation regarding response.headers
Oct 27, 2021
The Redaxios documentation refers us to the Axios documentation but that's not correct for some features. In the case of
response.headers
if we were to follow the Axios documentation to retrieve sayContent-Disposition
it would look like this:However, redaxios has forwarded the fetch api response interface that is like so:
It would be nice to have better documentation that points out the differences between Axios and Redaxios and further highlights that redaxios is definitely not a drop-in replacement for axios.
The text was updated successfully, but these errors were encountered: