Represents an HTTP response.

The IHttpResponse interface represents an HTTP response.

It contains the status code, headers, and body of the response.

Jeongho Nam - https://github.com/samchon

interface IHttpResponse {
    body: unknown;
    headers: Record<string, string | string[]>;
    status: number;
}

Properties

Properties

body: unknown

Body of the response.

headers: Record<string, string | string[]>

Headers of the response.

status: number

Status code of the response.