Skip to content

RequestResponse object

The RequestResponse object is a generic part of the Requester Fetch Item

interface IRequestResponse<T> extends Record<string, unknown> {
    data: T;
    status: number;
    statusText: string;
    headers: unknown;
    request?: unknown;
    config?: unknown;
}

Properties

RequestResponse.data

T The type of data returned by the RequestResponse

RequestResponse.status

number The status code of the performed request. You can learn more about status codes here

RequestResponse.statusText

string The status text of the performed request. You can learn more about status texts here

RequestResponse.headers

unknown The headers that were used to perform a request.

RequestResponse.request (optional)

unknown The request object for performing actions on a request.

RequestResponse.config (optional)

unknown The config options of the request.

Objects reference