2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-27 14:47:43 +03:00

Clarify what values responseType can have in Node (#2121)

It seems that `responseType: 'blob'` doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browser
This commit is contained in:
Tyler Breisacher
2019-05-07 12:26:33 -07:00
committed by Emily Morehouse
parent 0d4fca085b
commit b7a9744518
+2 -1
View File
@@ -304,7 +304,8 @@ These are the available config options for making requests. Only the `url` is re
},
// `responseType` indicates the type of data that the server will respond with
// options are 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream'
// options are: 'arraybuffer', 'document', 'json', 'text', 'stream'
// browser only: 'blob'
responseType: 'json', // default
// `responseEncoding` indicates encoding to use for decoding responses