/// import { IncomingMessage } from "http"; import { RequestExtendAbstract, TypePartialJRPCRequestBody } from "../../../core"; /** * Http Request Extender * * @licence MIT * @author Mahsum UREBE */ export declare class HttpRequestExtend extends RequestExtendAbstract { readonly request: Request & { body?: TypePartialJRPCRequestBody | undefined | null; }; constructor(request: Request & { body?: TypePartialJRPCRequestBody | undefined | null; }); /** * Get HTTP Method * * @return {string} */ getMethod(): string; /** * Get request body * * @return {?object|null} */ getBody(): TypePartialJRPCRequestBody | undefined | null; /** * Close Request * @param {?number} timeoutMs Disconnect timeout * @return {void|Promise>} */ close(timeoutMs?: number): void | Promise; /** * Get request client id * like ip address * * @return {string} */ getClientId(): string; /** * Destroy * * @return {Promise} * @protected */ protected destroy(): Promise; }