Interface HTTPServerResponse

Represents the interface for a response from the server.

interface HTTPServerResponse {
    body: HTTPBody;
    headers: HTTPHeaders;
    params: HTTPQueryParams;
    response: HTTPResponse;
    status: {
        code: number;
        message?: string;
    };
}

Properties

body: HTTPBody
headers: HTTPHeaders
response: HTTPResponse
status: {
    code: number;
    message?: string;
}