If null, the body is returned as a Buffer. Anything else (including the default value of undefined)
will be passed as the encoding parameter to toString() (meaning this is effectively 'utf8' by default).
(Note: if you expect binary data, you should set encoding: null.)
Optional headers
headers:{}
Type declaration
[key: string]: string
Optional params
params:{}
Type declaration
[key: string]: string
Optional query
query:string
Optional rejectUnauthorized
rejectUnauthorized:boolean
If true, the server certificate is verified against the list of supplied CAs.
The encoding to be used on response data.
If null, the body is returned as a Buffer. Anything else (including the default value of undefined) will be passed as the encoding parameter to toString() (meaning this is effectively 'utf8' by default). (Note: if you expect binary data, you should set encoding: null.)