Skip to content

Commit caa0625

Browse files
authored
docs: update README responseEncoding types (#6194)
README.md didn't elaborate upon responseEncoding options- now it does.
1 parent 41c4584 commit caa0625

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ These are the available config options for making requests. Only the `url` is re
487487

488488
// `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
489489
// Note: Ignored for `responseType` of 'stream' or client-side requests
490+
// options are: 'ascii', 'ASCII', 'ansi', 'ANSI', 'binary', 'BINARY', 'base64', 'BASE64', 'base64url',
491+
// 'BASE64URL', 'hex', 'HEX', 'latin1', 'LATIN1', 'ucs-2', 'UCS-2', 'ucs2', 'UCS2', 'utf-8', 'UTF-8',
492+
// 'utf8', 'UTF8', 'utf16le', 'UTF16LE'
490493
responseEncoding: 'utf8', // default
491494

492495
// `xsrfCookieName` is the name of the cookie to use as a value for xsrf token

0 commit comments

Comments
 (0)