Represents the response from a service request.

Remarks

This interface defines the structure of a response object, including the result, status, status text, and headers.

interface Response<T> {
    headers: IncomingHttpHeaders;
    result: T;
    status: number;
    statusText: string;
}

Type Parameters

  • T = any

Properties

headers: IncomingHttpHeaders

Incoming HTTP headers from the server.

result: T

The actual result of the request.

status: number

HTTP status code of the response.

statusText: string

Human-readable description of the HTTP status code.