Skip to content
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

Improve documentation regarding response.headers #73

Open
jonyyz opened this issue Oct 27, 2021 · 0 comments
Open

Improve documentation regarding response.headers #73

jonyyz opened this issue Oct 27, 2021 · 0 comments

Comments

@jonyyz
Copy link

jonyyz commented 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 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.

@jonyyz jonyyz changed the title Support response.headers Improve documentation regarding response.headers Oct 27, 2021
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

No branches or pull requests

1 participant