Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpResponse

public

Represents an HTTP message as received in reply to a request. Contains a numeric status code in addition to standard message properties.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Optional body

body: any

headers

headers: HeaderBag

statusCode

statusCode: number

Methods

Static isInstance

  • isInstance(response: unknown): response is HttpResponse
  • Parameters

    • response: unknown

    Returns response is HttpResponse