2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00

docs: update README responseEncoding types (#6194)

README.md didn't elaborate upon responseEncoding options- now it does.
This commit is contained in:
Lucas Keller
2024-02-16 04:18:16 -06:00
committed by GitHub
parent 41c4584a41
commit caa0625201
+3
View File
@@ -487,6 +487,9 @@ These are the available config options for making requests. Only the `url` is re
// `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
// Note: Ignored for `responseType` of 'stream' or client-side requests
// options are: 'ascii', 'ASCII', 'ansi', 'ANSI', 'binary', 'BINARY', 'base64', 'BASE64', 'base64url',
// 'BASE64URL', 'hex', 'HEX', 'latin1', 'LATIN1', 'ucs-2', 'UCS-2', 'ucs2', 'UCS2', 'utf-8', 'UTF-8',
// 'utf8', 'UTF8', 'utf16le', 'UTF16LE'
responseEncoding: 'utf8', // default
// `xsrfCookieName` is the name of the cookie to use as a value for xsrf token