9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

Defined in: http/http-interfaces.ts

Encapsulates HTTP-response information from an HTTP-request.

Type Parameters

Type ParameterDefault type
THttpContent

Properties

content?

ts
optional content?: T;

Defined in: http/http-interfaces.ts

Gets the response content.


headers

ts
headers: Headers;

Defined in: http/http-interfaces.ts

Gets the response headers.


statusCode

ts
statusCode: number;

Defined in: http/http-interfaces.ts

Gets the response status code.