Properties
body
body: { data: Data; err: number; errmsg: string }
Type declaration
-
data: Data
-
err: number
-
errmsg: string
complete
complete: boolean
connection
connection: Socket
destroyed
destroyed: boolean
Optional fromCache
fromCache: undefined | false | true
headers
headers: IncomingHttpHeaders
httpVersion
httpVersion: string
httpVersionMajor
httpVersionMajor: number
httpVersionMinor
httpVersionMinor: number
Optional isFromCache
isFromCache: undefined | false | true
Optional method
method: undefined | string
rawHeaders
rawHeaders: string[]
rawTrailers
rawTrailers: string[]
readable
readable: boolean
readableHighWaterMark
readableHighWaterMark: number
readableLength
readableLength: number
readableObjectMode
readableObjectMode: boolean
redirectUrls
redirectUrls: string[]
Optional req
req: http.ClientRequest
request
request: { options: NormalizedOptions }
Type declaration
-
options: NormalizedOptions
requestUrl
requestUrl: string
retryCount
retryCount: number
statusCode
statusCode: number
Optional statusMessage
statusMessage: undefined | string
timings
timings: Timings
trailers
trailers: {}
Type declaration
-
[key: string]: string | undefined
url
url: string
Use
socket
instead.