Languages

JavaScript - what are axios available response types?

3 points
Asked by:
JoanneSenior
1070

What are available response types in axios?

I want to use axios like this:

axios.post('/upload', uploadData, { responseType: 'blob' })

and I was wondering what are possible responseType values.

1 answer
3 points
Answered by:
JoanneSenior
1070

Available responseType values:

  • 'arraybuffer'
  • 'blob'
  • 'document'
  • 'json'
  • 'text'
  • 'stream'

See also

  1. JavaScript - how to set axios response type? 
0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join