Properties
Optional _defaultAgent
_defaultAgent?: Agent
Optional abort
abort?: AbortSignal
Optional agent
agent?: boolean | Agent
Optional auth
auth?: null | string
Optional authMethod
authMethod?: string[]
Optional cookie
cookie?: any
Optional cookieJar
cookieJar?: any
Optional createConnection
createConnection?: (options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket
Type declaration
- (options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void): Socket
Parameters
options: ClientRequestArgs
oncreate: (err: Error, socket: Socket) => void
- (err: Error, socket: Socket): void
Returns Socket
Optional debug
debug?: boolean
Optional defaultPort
defaultPort?: string | number
Optional disableRedirect
disableRedirect?: boolean
Optional domain
domain?: string
Optional family
family?: number
Optional headers
headers?: OutgoingHttpHeaders
Optional host
host?: null | string
Optional hostname
hostname?: null | string
Optional localAddress
localAddress?: string
Optional lookup
lookup?: LookupFunction
Optional maxHeaderSize
maxHeaderSize?: number
Optional method
method?: string
Optional path
path?: null | string
Optional port
port?: null | string | number
Optional protocol
protocol?: null | string
Optional requests
requests?: number
Optional setHost
setHost?: boolean
Optional socketPath
socketPath?: string
Optional timeout
timeout?: number
Optional tough
tough?: any
Optional user
user?: string
Optional workstation
workstation?: string
Stores the used auth method