Skip to content

Commit

Permalink
docs: update README responseEncoding types (#6194)
Browse files Browse the repository at this point in the history
README.md didn't elaborate upon responseEncoding options- now it does.
  • Loading branch information
ljkeller committed Feb 16, 2024
1 parent 41c4584 commit caa0625
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caa0625

Please sign in to comment.