Skip to main content

Class: HttpResponse

Main object that contains result information from a request.

Constructors

new HttpResponse()

private new HttpResponse(): HttpResponse

Returns

HttpResponse

Properties

body

readonly body: string

Remarks

Body content of the HTTP response.


headers

readonly headers: HttpHeader[]

Remarks

A collection of HTTP response headers returned from the request.


request

readonly request: HttpRequest

Remarks

Information that was used to formulate the HTTP response that this object represents.


status

readonly status: number

Remarks

HTTP response code for the request. For example, 404 represents resource not found, and 500 represents an internal server error.