Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HTTPRequestResult

A result of a HTTP request.

Hierarchy

  • HTTPRequestResult

Index

Properties

code

code: number

The (status) code.

readBody

readBody: function

Reads and returns the body (data).

Type declaration

    • (): PromiseLike<Buffer>
    • Returns PromiseLike<Buffer>

request

request: RequestOptions | RequestOptions

The options of the request.

response

response: ClientResponse

The response context.

status

status: string

The status (message).

url

url: Url

The request URL.

version

version: string

The HTTP version.

Generated using TypeDoc