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: () => PromiseLike<Buffer>

Reads and returns the body (data).

Type declaration

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

request

The options of the request.

response

response: IncomingMessage

The response context.

status

status: string

The status (message).

url

url: Url

The request URL.

version

version: string

The HTTP version.

Generated using TypeDoc