UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

14 lines (13 loc) 518 B
import type { IHttpRequest, IHttpResponse, RequestMethod } from '../../definition/accessors'; import { BaseBridge } from './BaseBridge'; export interface IHttpBridgeRequestInfo { appId: string; method: RequestMethod; url: string; request: IHttpRequest; } export declare abstract class HttpBridge extends BaseBridge { doCall(info: IHttpBridgeRequestInfo): Promise<IHttpResponse>; protected abstract call(info: IHttpBridgeRequestInfo): Promise<IHttpResponse>; private hasDefaultPermission; }