interface Response {
    body: string;
    cookies: Cookie[];
    headers: OutgoingHttpHeaders;
    json: (<T>() => T);
    payload: string;
    raw: {
        req: IncomingMessage;
        res: ServerResponse<IncomingMessage>;
    };
    rawPayload: Buffer;
    statusCode: number;
    statusMessage: string;
    stream: (() => Readable);
    trailers: {
        [key: string]: string;
    };
}

Properties

body: string
cookies: Cookie[]
json: (<T>() => T)

Type declaration

    • <T>(): T
    • Type Parameters

      • T = any

      Returns T

payload: string
raw: {
    req: IncomingMessage;
    res: ServerResponse<IncomingMessage>;
}
rawPayload: Buffer
statusCode: number
statusMessage: string
stream: (() => Readable)

Type declaration

trailers: {
    [key: string]: string;
}

Type declaration

  • [key: string]: string