Lines 875-915markdown
875 adapter: function (config) {
878 // Also, you can set the name of the built-in adapter, or provide an array with their names
879 // to choose the first available in the environment
880 adapter: 'xhr', // 'fetch' | 'http' | ['xhr', 'http', 'fetch']
882 // `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
883 // This will set an `Authorization` header, overwriting any existing
884 // `Authorization` custom headers you have set using `headers`.
885 // If `auth` is omitted, the Node.js HTTP and fetch adapters can read
886 // HTTP Basic auth credentials from the request URL, for example
887 // `https://user:pass@example.com`. Axios decodes percent-encoded URL
888 // credentials, and `auth` takes precedence over URL-embedded credentials.
889 // The Node.js HTTP adapter preserves Basic auth on same-origin redirects
890 // and strips it on cross-origin redirects.
891 // Please note that only HTTP Basic auth is configurable through this parameter.
892 // For Bearer tokens and such, use `Authorization` custom headers instead.
895 password: 's00pers3cret'
898 // `responseType` indicates the type of data that the server will respond with
899 // options are: 'arraybuffer', 'document', 'json', 'text', 'stream'
900 // browser only: 'blob'
901 responseType: 'json', // default
903 // `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
904 // Note: Ignored for `responseType` of 'stream' or client-side requests
905 // options are: 'ascii', 'ASCII', 'ansi', 'ANSI', 'binary', 'BINARY', 'base64', 'BASE64', 'base64url',
906 // 'BASE64URL', 'hex', 'HEX', 'latin1', 'LATIN1', 'ucs-2', 'UCS-2', 'ucs2', 'UCS2', 'utf-8', 'UTF-8',
907 // 'utf8', 'UTF8', 'utf16le', 'UTF16LE'
908 responseEncoding: 'utf8', // default
910 // `xsrfCookieName` is the name of the cookie to use as a value for the xsrf token
911 xsrfCookieName: 'XSRF-TOKEN', // default
913 // `xsrfHeaderName` is the name of the http header that carries the xsrf token value
914 xsrfHeaderName: 'X-XSRF-TOKEN', // default