Properties
Optional agent
agent: Agent | Agent
Optional agentClass
agentClass: any
Optional agentOptions
agentOptions: any
Optional auth
auth: AuthOptions
Optional aws
aws: AWSOptions
Optional baseUrl
baseUrl: string
Optional ca
ca: string | Buffer | string[] | Buffer[]
Optional callback
callback: function
Type declaration
-
- (error: any, response: RequestResponse, body: any): void
-
Parameters
-
error: any
-
response: RequestResponse
-
body: any
Returns void
Optional cert
cert: Buffer
Optional encoding
encoding: string | null
Optional followAllRedirects
followAllRedirects: boolean
Optional followRedirect
followRedirect: boolean | function
Optional forever
forever: any
Optional formData
formData: any
Optional gzip
gzip: boolean
Optional har
har: HttpArchiveRequest
Optional hawk
hawk: HawkOptions
Optional headers
headers: Headers
Optional host
host: string
Optional jsonReplacer
jsonReplacer: function
Type declaration
-
- (key: string, value: any): any
Optional jsonReviver
jsonReviver: function
Type declaration
-
- (key: string, value: any): any
Optional maxRedirects
maxRedirects: number
Optional method
method: string
Optional multipart
multipart: RequestPart[] | Multipart
Optional oauth
oauth: OAuthOptions
Optional passphrase
passphrase: string
Optional port
port: number
Optional postambleCRLF
postambleCRLF: boolean
Optional preambleCRLF
preambleCRLF: boolean
Optional proxy
proxy: any
Optional qsParseOptions
qsParseOptions: any
Optional qsStringifyOptions
qsStringifyOptions: any
Optional resolveWithFullResponse
resolveWithFullResponse: boolean
Optional simple
simple: boolean
Optional strictSSL
strictSSL: boolean
Optional timeout
timeout: number
Optional transform2xxOnly
transform2xxOnly: boolean
Optional useQuerystring
useQuerystring: boolean
Optional withCredentials
withCredentials: boolean